dummier 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -24,14 +24,14 @@ gem install dummier
24
24
  To install with bundler:
25
25
 
26
26
  ```ruby
27
- gem 'dummier', '>= 0.3.0'
27
+ gem 'dummier', '>= 0.3.2'
28
28
  ```
29
29
 
30
30
 
31
31
  To package for development in your gemspec:
32
32
 
33
33
  ```ruby
34
- s.add_development_dependency('dummier', '>= 0.3.0')
34
+ s.add_development_dependency('dummier', '>= 0.3.2')
35
35
  ```
36
36
 
37
37
 
@@ -41,12 +41,6 @@ Usage
41
41
 
42
42
  After you've installed Dummier, just `cd` into the gem your developing and run the binary:
43
43
 
44
- ```bash
45
- dummier
46
- ```
47
-
48
- If you're in a gem that uses bundler, you may have to run the binary with `bundle exec`:
49
-
50
44
  ```bash
51
45
  bundle exec dummier
52
46
  ```
@@ -111,10 +105,12 @@ Testing
111
105
 
112
106
  To get setup for testing, clone this repo, bundle up and run rake.
113
107
 
114
- git clone git://github.com/citrus/dummier.git
115
- cd dummier
116
- bundle install
117
- rake
108
+ ```bash
109
+ git clone git://github.com/citrus/dummier.git
110
+ cd dummier
111
+ bundle install
112
+ bundle exec rake
113
+ ```
118
114
 
119
115
 
120
116
  Enjoy!
@@ -124,6 +120,18 @@ Enjoy!
124
120
  Change Log
125
121
  ------------------------------------------------------------------------------
126
122
 
123
+ **0.3.2 - 2012/3/12**
124
+
125
+ * revert to using rake "db:migrate", :env => "test" for running migrations
126
+
127
+
128
+ **0.3.1 - 2012/3/12**
129
+
130
+ * use bundle exec when running rake db:migrate
131
+ * better gem dependency defintions
132
+ * use rescue StandardError vs rescue Exception
133
+
134
+
127
135
  **0.3.0 - 2012/1/26**
128
136
 
129
137
  * exit and raise a Dummier::HookException when a hook raises an exception
@@ -191,4 +199,4 @@ Contributors
191
199
  License
192
200
  ------------------------------------------------------------------------------
193
201
 
194
- Copyright (c) 2011 Spencer Steffen and Citrus, released under the New BSD License All rights reserved.
202
+ Copyright (c) 2011 - 2012 Spencer Steffen and Citrus, released under the New BSD License All rights reserved.
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
- require 'bundler'
2
- require 'rake/testtask'
1
+ require "bundler"
2
+ require "rake/testtask"
3
3
 
4
4
  Bundler::GemHelper.install_tasks
5
5
 
6
6
  Rake::TestTask.new(:test) do |t|
7
- t.libs << 'test' << 'lib'
8
- t.pattern = 'test/**/*_test.rb'
7
+ t.libs << "test" << "lib"
8
+ t.pattern = "test/**/*_test.rb"
9
9
  t.verbose = true
10
10
  end
11
11
 
12
- task :default => :test
12
+ task :default => :test
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
21
  s.require_paths = ["lib"]
22
22
 
23
- s.add_dependency('rails', '>= 3.0.0')
23
+ s.add_runtime_dependency('rails', '>= 3')
24
24
 
25
- s.add_development_dependency('minitest', '>= 2.0.0')
26
- s.add_development_dependency('minitest_should', '>= 0.3.1')
27
- s.add_development_dependency('sqlite3', '>= 1.3.3')
25
+ s.add_development_dependency('minitest', '>= 2')
26
+ s.add_development_dependency('minitest_should', '~> 0.3')
27
+ s.add_development_dependency('sqlite3', '~> 1.3')
28
28
 
29
29
  end
@@ -68,7 +68,6 @@ module Dummier
68
68
  contents[(contents.index("module Dummy"))..-1]
69
69
  end
70
70
  end
71
- alias :store_application_definition! :application_definition
72
71
 
73
72
  # Loads a hook file and evalutes its contents.
74
73
  # rescues any exceptions and logs their message.
@@ -78,7 +77,7 @@ module Dummier
78
77
  file = File.join(root_path, "test/dummy_hooks/#{hook_name}.rb")
79
78
  say_status "hook", hook_name, File.exists?(file) ? :cyan : :red
80
79
  eval File.read(file) if File.exists?(file)
81
- rescue Exception => e
80
+ rescue => e
82
81
  say_status "failed", "#{hook_name} raised an exception", :red
83
82
  say "*" * 60, :red
84
83
  say e.message.strip + "\n", :red
@@ -150,7 +149,7 @@ cucumber:
150
149
 
151
150
  # Runs db:migrate on the test database
152
151
  def run_migration
153
- rake("db:migrate", :env => "test")
152
+ rake "db:migrate", :env => "test"
154
153
  end
155
154
 
156
155
  # Checks for ./features within the gem's root path
@@ -1,3 +1,3 @@
1
1
  module Dummier
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -1 +1 @@
1
- raise Exception, "Before Delete"
1
+ raise StandardError, "Before Delete"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dummier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,52 +9,52 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-27 00:00:00.000000000Z
12
+ date: 2012-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70265410791360 !ruby/object:Gem::Requirement
16
+ requirement: &70153141877680 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.0.0
21
+ version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70265410791360
24
+ version_requirements: *70153141877680
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &70265410787140 !ruby/object:Gem::Requirement
27
+ requirement: &70153141876800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.0
32
+ version: '2'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70265410787140
35
+ version_requirements: *70153141876800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest_should
38
- requirement: &70265410778440 !ruby/object:Gem::Requirement
38
+ requirement: &70153141876200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ! '>='
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 0.3.1
43
+ version: '0.3'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70265410778440
46
+ version_requirements: *70153141876200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
- requirement: &70265410777740 !ruby/object:Gem::Requirement
49
+ requirement: &70153141874960 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ! '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.3.3
54
+ version: '1.3'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70265410777740
57
+ version_requirements: *70153141874960
58
58
  description: Dummier is a rails generator for automating the creation of rails testing
59
59
  applications.
60
60
  email:
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 2889636280236080648
109
+ hash: 4159953653466701140
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
@@ -115,10 +115,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: 2889636280236080648
118
+ hash: 4159953653466701140
119
119
  requirements: []
120
120
  rubyforge_project: dummier
121
- rubygems_version: 1.8.10
121
+ rubygems_version: 1.8.17
122
122
  signing_key:
123
123
  specification_version: 3
124
124
  summary: Dummier generates a minimal rails testing application.