From 5af418adacc6a8d2622351913e6e3096bf096c46 Mon Sep 17 00:00:00 2001 From: wycats Date: Thu, 6 May 2010 11:58:19 +0300 Subject: [PATCH] first commit --- CHANGELOG.md | 0 Gemfile | 9 +++++++++ LICENSE | 20 ++++++++++++++++++++ README.md | 0 ROADMAP.md | 0 Rakefile | 14 ++++++++++++++ lib/newgem.rb | 1 + lib/newgem/awesome.rb | 7 +++++++ lib/newgem/version.rb | 3 +++ newgem-0.0.1.gem | Bin 0 -> 4096 bytes newgem-0.0.2.gem | Bin 0 -> 4096 bytes newgem.gemspec | 30 ++++++++++++++++++++++++++++++ spec/awesome_spec.rb | 7 +++++++ spec/spec_helper.rb | 10 ++++++++++ spec/support/matchers.rb | 13 +++++++++++++ 15 files changed, 114 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 Gemfile create mode 100644 LICENSE create mode 100644 README.md create mode 100644 ROADMAP.md create mode 100644 Rakefile create mode 100644 lib/newgem.rb create mode 100644 lib/newgem/awesome.rb create mode 100644 lib/newgem/version.rb create mode 100644 newgem-0.0.1.gem create mode 100644 newgem-0.0.2.gem create mode 100644 newgem.gemspec create mode 100644 spec/awesome_spec.rb create mode 100644 spec/spec_helper.rb create mode 100644 spec/support/matchers.rb diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..baa0610 --- /dev/null +++ b/Gemfile @@ -0,0 +1,9 @@ +source "http://rubygems.org" + +# Will automatically pull in this gem and all its +# dependencies specified in the gemspec +gem "newgem", :path => File.expand_path("..", __FILE__) + +# These are development dependencies +gem "rake" +gem "rspec", "2.0.0.beta.8" \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..64c5a2d --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2010 Carl Lerche, Yehuda Katz + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/ROADMAP.md b/ROADMAP.md new file mode 100644 index 0000000..e69de29 diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..518e8bc --- /dev/null +++ b/Rakefile @@ -0,0 +1,14 @@ +require "bundler" +Bundler.setup + +require "rspec/core/rake_task" +Rspec::Core::RakeTask.new(:spec) + +gemspec = eval(File.read("newgem.gemspec")) + +task :build => "#{gemspec.full_name}.gem" + +file "#{gemspec.full_name}.gem" => gemspec.files + ["newgem.gemspec"] do + system "gem build newgem.gemspec" + system "gem install newgem-#{NewGem::VERSION}.gem" +end \ No newline at end of file diff --git a/lib/newgem.rb b/lib/newgem.rb new file mode 100644 index 0000000..4348d53 --- /dev/null +++ b/lib/newgem.rb @@ -0,0 +1 @@ +require "newgem/awesome" \ No newline at end of file diff --git a/lib/newgem/awesome.rb b/lib/newgem/awesome.rb new file mode 100644 index 0000000..7fbec95 --- /dev/null +++ b/lib/newgem/awesome.rb @@ -0,0 +1,7 @@ +module NewGem + class Awesome + def describe + "awesome" + end + end +end \ No newline at end of file diff --git a/lib/newgem/version.rb b/lib/newgem/version.rb new file mode 100644 index 0000000..44be715 --- /dev/null +++ b/lib/newgem/version.rb @@ -0,0 +1,3 @@ +module NewGem + VERSION = "0.0.2" +end \ No newline at end of file diff --git a/newgem-0.0.1.gem b/newgem-0.0.1.gem new file mode 100644 index 0000000000000000000000000000000000000000..6fa95f7c211e744c47194e66c3f8f96ae8ffce34 GIT binary patch literal 4096 zcmYdEEJ@TWNi5P!uVSDTFaQEG6B7my4Fu@4p}7%U3?gr6Y;0)GpkP2N2O*nVS`73( z&`ISPsi`^05@>8f@?ftac@9ncVCBkpb1<-QJoIK@eiMGbf02j4y!3xvT>iT`3ol64 z?sy_swczSGr5SAL=iFPuelG-2wl)rX9`*-<++k9rnH0Xa5-e}4&$!49FLVGmhafX!Ci(mh_EZ+ZjKjkd;w1{%v^s>jTMrU!AK0 z`^N_p9DO;%@ohdR~jC?;=n7h8 znndx!ZJRF5c9|fW;?#N7I430Liqh7EwJi-ryq;pKc~@OiJ#y6eO+j=g*V9#fsfyjb zg3e7#qBfno;1jy;b!|`of*l@=_I9USj%Dy)GRoYxXvO2G&udflw0?x7A2K++xb5do zRZrJB%{mumHB48%aoS3Iw$zjrS*pUhhn*Ix+xcwhN?zVMmpb9|Qx`Y@kAnrmVca5(wN!Nu%aJf}W#%#M68Npj|eFl`5InJqUi z?q05$yL>|bgY%sQ=6MNza}M-d@agtUa{s@=ZsUX~2Mg{}r(-q_pRMMu5ZvMxaDF+v zw$;@StCTbr9q*nnuclD*I%tNpTg)nV2J(aBDG6E5A3dt?0m?BD-COaGsf z>)ZAHzv%(Z!t^gqNB94n`isAHEL*_zg+Y$=QYJUGBrye42Ml2OZ)gaw8{p-?x!Gv>PkL;Ut^-m29|^gif7yYj zZvXy6Us~CxnA|-gr_{K@%~T+Hfv?jnfi699bITp_56>lP*W2zh$-UnA&1=e&oa5h~ zzkd@mE%k#A&)2kfuivj&vBx2Lnz^mk-fLcyzVWq87V|EsxV}hqzk$oPY5zHXZ~Du^ zw18jY!h#-|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OHbU~a)FB08v;IeJne~#aq{<1JF z;Fq|tphsrMG&QB$O54O_j~ZE~1lUyQ|Jdsv^Tc(Zz}|^lz8#!4p`b-(#b?E%X$5-C zjov(~oUi3=l$PR@SNYp_@+|uw%NGX@EV{Pt;zE|V)8H9Th6Eiv;~;bZmVD?f(nue@D+FLJil*}$(ye#GU= zUhY}O$;)19zDe>--2Pb`XG~FlZXfIZd0(%lT4wywH8W(zPkeb?ulFfMf9|`bn~%57 zf3p1NOp7-8>H`&jZg0EO`oR6l-Gd*^cjxx4h(7+`<14dyj7v?$7nvA;SD7_a8)K(w vDi)|IY 1.2" + + # If you need to check in files that aren't .rb files, add them here + s.files = Dir["{lib}/**/*.rb", "bin/*", "LICENSE", "*.md"] + s.require_path = 'lib' + + # If you need an executable, add it here + # s.executables = ["newgem"] + + # If you have C extensions, uncomment this line + # s.extensions = "ext/extconf.rb" +end \ No newline at end of file diff --git a/spec/awesome_spec.rb b/spec/awesome_spec.rb new file mode 100644 index 0000000..4942f78 --- /dev/null +++ b/spec/awesome_spec.rb @@ -0,0 +1,7 @@ +require "spec_helper" + +describe NewGem::Awesome do + it "is awesome" do + NewGem::Awesome.new.describe.should be_awesome + end +end \ No newline at end of file diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..4a3e5fa --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,10 @@ +require "bundler" +Bundler.setup + +require "rspec" +require "newgem" +require "support/matchers" + +Rspec.configure do |config| + config.include NewGem::Spec::Matchers +end \ No newline at end of file diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb new file mode 100644 index 0000000..b1f6bbc --- /dev/null +++ b/spec/support/matchers.rb @@ -0,0 +1,13 @@ +module NewGem + module Spec + module Matchers + def be_awesome + Rspec::Matchers::Matcher.new :be_awesome do + match do |actual| + actual.should == "awesome" + end + end + end + end + end +end