singem 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -20,13 +20,13 @@ Basic Sinatra App, no sessions, cucumber testing
20
20
  ------------------------------------------------
21
21
  % singem foo
22
22
  % cd foo
23
- % gem bundle
24
- % bin/rake
23
+ % bundle install
24
+ % bundle exec rake
25
25
 
26
26
  Basic Twitter OAuth App,
27
27
  ------------------------------
28
28
  % singem --twitter foo
29
29
  % cd foo
30
- % gem bundle
31
- % rake
30
+ % bundle install
31
+ % bundle exec rake
32
32
  % open http://twitter.com/oauth_clients
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'date'
4
4
  require 'spec/rake/spectask'
5
5
 
6
6
  GEM = "singem"
7
- GEM_VERSION = "0.0.7"
7
+ GEM_VERSION = "0.1.0"
8
8
  AUTHOR = "Corey Donohoe"
9
9
  EMAIL = "atmos@atmos.org"
10
10
  HOMEPAGE = "http://github.com/atmos/singem"
@@ -23,7 +23,7 @@ spec = Gem::Specification.new do |s|
23
23
  s.homepage = HOMEPAGE
24
24
 
25
25
  s.add_dependency "rubigen"
26
- s.add_dependency "bundler"
26
+ s.add_dependency "bundler", '~>0.9.3'
27
27
 
28
28
  s.bindir = "bin"
29
29
  s.executables = %w( singem )
@@ -1,5 +1,7 @@
1
- only :runtime do
2
- gem 'rack_hoptoad', '~>0.1.1', :require_as => 'rack/hoptoad'
1
+ source :gemcutter
2
+
3
+ group :runtime do
4
+ gem 'rack_hoptoad', '~>0.1.1', :require => 'rack/hoptoad'
3
5
  gem 'haml', '~>2.2.0'
4
6
  gem 'sinatra', '~>0.9.4'
5
7
  #gem 'do_sqlite3', '>=0.10.1.1'
@@ -8,24 +10,19 @@ only :runtime do
8
10
  #gem 'dm-timestamps', '>=0.10.2'
9
11
  end
10
12
 
11
- only :development do
12
- gem 'shotgun'
13
- end
14
-
15
- only :test do
13
+ group :test do
16
14
  gem 'rake'
17
- gem 'rspec', :require_as => 'spec'
15
+ gem 'rspec', :require => 'spec'
18
16
  gem 'rcov'
19
- gem 'bundler', '~>0.8.1'
17
+ gem 'shotgun'
18
+ gem 'bundler', '~>0.9.3'
20
19
  gem 'cucumber'
21
20
  gem 'webrat', '~>0.7.0'
22
- gem 'rack-test', '~>0.5.3', :require_as => 'rack/test'
21
+ gem 'rack-test', '~>0.5.3', :require => 'rack/test'
23
22
  gem 'fakeweb', '>=1.2.8'
24
23
  gem 'randexp', '>=0.1.4'
25
- #gem 'ParseTree', '>=3.0.4', :require_as => [ ]
24
+ gem 'ParseTree', '>=3.0.4', :require => [ ]
26
25
  #gem 'dm-sweatshop', '~>0.10.2'
27
26
  end
28
27
 
29
- disable_system_gems
30
-
31
28
  # vim:ft=ruby
@@ -6,5 +6,5 @@ A sinatra app the provides a gem that...
6
6
  Developing
7
7
  ==========
8
8
  % gem install bundler
9
- % gem bundle
10
- % bin/rake
9
+ % bundle install
10
+ % bundle exec rake
@@ -18,7 +18,7 @@ Spec::Rake::SpecTask.new do |t|
18
18
  t.spec_opts = %w(-fs --color)
19
19
  t.spec_opts << '--loadby' << 'random'
20
20
 
21
- t.rcov_opts << '--exclude' << 'spec'
21
+ t.rcov_opts << '--exclude' << 'spec,.bundle'
22
22
  t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
23
23
  t.rcov_opts << '--text-summary'
24
24
  t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
@@ -43,10 +43,10 @@ spec = Gem::Specification.new do |s|
43
43
  s.email = EMAIL
44
44
  s.homepage = HOMEPAGE
45
45
 
46
- bundle = Bundler::Bundle.load(File.dirname(__FILE__) + '/Gemfile')
47
- bundle.environment.dependencies.each do |dep|
48
- next unless dep.only && dep.only.include?('runtime')
49
- s.add_dependency(dep.name, dep.version.to_s)
46
+ bundle = Bundler::Definition.from_gemfile('Gemfile')
47
+ bundle.dependencies.each do |dep|
48
+ next unless dep.groups.include?(:runtime)
49
+ s.add_dependency(dep.name, dep.version_requirements.to_s)
50
50
  end
51
51
 
52
52
  s.require_path = 'lib'
@@ -1,4 +1,4 @@
1
- Bundler.require_env(:test)
1
+ Bundler.require(:default, :runtime, :test)
2
2
  require File.join(File.dirname(__FILE__), '..', '..', 'lib', '<%= name %>')
3
3
 
4
4
  Webrat.configure do |config|
@@ -1,4 +1,4 @@
1
- Bundler.require_env(:test)
1
+ Bundler.require(:default, :runtime, :test)
2
2
 
3
3
  require File.join(File.dirname(__FILE__), '..', 'lib', '<%= name %>')
4
4
 
@@ -1,5 +1,7 @@
1
- only :runtime do
2
- gem 'rack_hoptoad', '~>0.1.1', :require_as => 'rack/hoptoad'
1
+ source :gemcutter
2
+
3
+ group :runtime do
4
+ gem 'rack_hoptoad', '~>0.1.1', :require => 'rack/hoptoad'
3
5
  gem 'haml', '~>2.2.0'
4
6
  gem 'sinatra', '~>0.9.4'
5
7
  gem 'curb', '>=0.3.7'
@@ -11,24 +13,19 @@ only :runtime do
11
13
  gem 'dm-timestamps', '~>0.10.2'
12
14
  end
13
15
 
14
- only :development do
15
- gem 'shotgun'
16
- end
17
-
18
- only :test do
16
+ group :test do
19
17
  gem 'rake'
20
- gem 'rspec', :require_as => 'spec'
18
+ gem 'rspec', :require => 'spec'
21
19
  gem 'rcov'
22
- gem 'bundler', '~>0.8.1'
20
+ gem 'shotgun'
21
+ gem 'bundler', '~>0.9.3'
23
22
  gem 'cucumber'
24
23
  gem 'webrat', '~>0.7.0'
25
- gem 'rack-test', '~>0.5.3', :require_as => 'rack/test'
24
+ gem 'rack-test', '~>0.5.3', :require => 'rack/test'
26
25
  gem 'fakeweb', '~>1.2.8'
27
26
  gem 'randexp', '>=0.1.4'
28
- #gem 'ParseTree', '>=3.0.4', :require_as => [ ]
27
+ gem 'ParseTree', '>=3.0.4', :require => [ ]
29
28
  #gem 'dm-sweatshop', '~>0.10.2'
30
29
  end
31
30
 
32
- disable_system_gems
33
-
34
31
  # vim:ft=ruby
@@ -6,5 +6,5 @@ A gem that provides...
6
6
  Developing
7
7
  ==========
8
8
  % gem install bundler
9
- % gem bundle
10
- % bin/rake
9
+ % bundle install
10
+ % bundle exec rake
@@ -18,7 +18,7 @@ Spec::Rake::SpecTask.new do |t|
18
18
  t.spec_opts = %w(-fs --color)
19
19
  t.spec_opts << '--loadby' << 'random'
20
20
 
21
- t.rcov_opts << '--exclude' << 'spec'
21
+ t.rcov_opts << '--exclude' << 'spec,.bundle'
22
22
  t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
23
23
  t.rcov_opts << '--text-summary'
24
24
  t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
@@ -43,10 +43,10 @@ spec = Gem::Specification.new do |s|
43
43
  s.email = EMAIL
44
44
  s.homepage = HOMEPAGE
45
45
 
46
- bundle = Bundler::Bundle.load(File.dirname(__FILE__) + '/Gemfile')
47
- bundle.environment.dependencies.each do |dep|
48
- next unless dep.only && dep.only.include?('runtime')
49
- s.add_dependency(dep.name, dep.version.to_s)
46
+ bundle = Bundler::Definition.from_gemfile('Gemfile')
47
+ bundle.dependencies.each do |dep|
48
+ next unless dep.groups.include?(:runtime)
49
+ s.add_dependency(dep.name, dep.version_requirements.to_s)
50
50
  end
51
51
 
52
52
  s.require_path = 'lib'
@@ -1,4 +1,4 @@
1
- Bundler.require_env(:test)
1
+ Bundler.require(:default, :runtime, :test)
2
2
  require File.join(File.dirname(__FILE__), '..', '..', 'lib', '<%= name %>')
3
3
 
4
4
  require 'spec/mocks'
@@ -5,7 +5,7 @@ module <%= name.camelize %>
5
5
  storage_names[:default] = '<%= name.camelize %>_users'
6
6
 
7
7
  property :id, Serial
8
- property :twitter_id, Integer, :nullable => false, :unique => true
8
+ property :twitter_id, Integer, :required => true, :unique => true
9
9
  property :name, String
10
10
  property :token, String
11
11
  property :secret, String
@@ -1,4 +1,4 @@
1
- Bundler.require_env(:test)
1
+ Bundler.require(:default, :runtime, :test)
2
2
  require File.join(File.dirname(__FILE__), '..', 'lib', '<%= name %>')
3
3
  require 'pp'
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe
@@ -9,7 +9,7 @@ autorequire: singem
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-24 00:00:00 -08:00
12
+ date: 2010-02-06 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -28,9 +28,9 @@ dependencies:
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: "0"
33
+ version: 0.9.3
34
34
  version:
35
35
  description: A gem that provides generators for sinatra apps, ready to go with rack-test/webrat/randexp and others
36
36
  email: atmos@atmos.org