lazy-head-gen 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # lazy-head-gen
2
2
 
3
- lazy-head-gen provides some extra generators to [Padrino](https://github.com/padrino/padrino-framework).
3
+ lazy-head-gen provides some extra generators for the [Padrino](https://github.com/padrino/padrino-framework) framework.
4
4
 
5
- It is currently assuming that you are using ActiveRecord and MiniTest, as that is the options we normally use in our development at [Head](http://www.headlondon.com).
5
+ The generators are hard wired to use ActiveRecord and MiniTest, as that is the options I normally use in development at [Head](http://www.headlondon.com).
6
6
 
7
7
  ## Installation
8
8
 
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
18
18
  gem.homepage = "http://github.com/sleepingstu/lazy-head-gen"
19
19
  gem.license = "MIT"
20
20
  gem.summary = %Q{Some extra generators for Padrino, using ActiveRecord and MiniTest.}
21
- gem.description = %Q{lazy-head-gen adds some extra generators to Padrino. Currently it assumes you are using ActiveRecord and MiniTest.}
21
+ gem.description = %Q{lazy-head-gen adds some extra generators to Padrino. Currently they are hard wired to use ActiveRecord and MiniTest.}
22
22
  gem.email = "stuart.chinery@headlondon.com"
23
23
  gem.authors = ["Stuart Chinery"]
24
24
  # dependencies defined in Gemfile
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lazy-head-gen"
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stuart Chinery"]
12
- s.date = "2012-07-10"
13
- s.description = "lazy-head-gen adds some extra generators to Padrino. Currently it assumes you are using ActiveRecord and MiniTest."
12
+ s.date = "2012-07-24"
13
+ s.description = "lazy-head-gen adds some extra generators to Padrino. Currently they are hard wired to use ActiveRecord and MiniTest."
14
14
  s.email = "stuart.chinery@headlondon.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
data/lib/lazy-head-gen.rb CHANGED
@@ -26,15 +26,6 @@ module LazyHeadGen
26
26
  assert_equal "http://example.org/admin/sessions/new", location
27
27
  end
28
28
 
29
- # Assertions to test when an admin user is not logged in
30
- # and trys to call a destroy action
31
- #
32
- def assert_admin_destroy_not_logged_in
33
- assert !ok?
34
- assert_equal 405, status
35
- assert_nil location
36
- end
37
-
38
29
  # Some shorthands for last_request and last_response varibles
39
30
  #
40
31
  def path
@@ -76,11 +76,11 @@ describe "Admin::<%= @controller if @controller %>Controller" do
76
76
  before do
77
77
  @<%= @singular %> = <%= @model %>.make!
78
78
 
79
- get "/admin/<%= @pluralized %>/destroy/#{@<%= @singular %>.to_param}"
79
+ delete "/admin/<%= @pluralized %>/destroy/#{@<%= @singular %>.to_param}"
80
80
  end
81
81
 
82
82
  it "should not return the destroyed text" do
83
- assert_admin_destroy_not_logged_in
83
+ assert_admin_not_logged_in
84
84
  end
85
85
  end
86
86
  # END DELETE destroy
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy-head-gen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stuart Chinery
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-10 00:00:00 Z
18
+ date: 2012-07-24 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime
@@ -121,7 +121,7 @@ dependencies:
121
121
  version_requirements: *id007
122
122
  name: uuid
123
123
  prerelease: false
124
- description: lazy-head-gen adds some extra generators to Padrino. Currently it assumes you are using ActiveRecord and MiniTest.
124
+ description: lazy-head-gen adds some extra generators to Padrino. Currently they are hard wired to use ActiveRecord and MiniTest.
125
125
  email: stuart.chinery@headlondon.com
126
126
  executables: []
127
127