godmin 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b2b9de0c881d61fc5e85818c2d335da6f291957
4
- data.tar.gz: a6622de98d4b80f5713db91c2246a181034c8b91
3
+ metadata.gz: 3752b46479c7e824c758115cda440041a600e0a9
4
+ data.tar.gz: 7becd66097fb77369d25f23826bc81c0b633b246
5
5
  SHA512:
6
- metadata.gz: 662aa94de5c99b574781a967cc6e8f4ef29223563028b26cb19c1b57c261a955e783b7c8a96e8115ac407bbc54e3b7d5be31eb31d494ddc4efc2a0641d6391f7
7
- data.tar.gz: 26755fad1ee306f90dc5d3ca7be7f30b31757229a7efdda7018d97016c037dc762461f2218432486bbce6516f92bea5e529c1c3202829435ecaedf054bfd76b4
6
+ metadata.gz: ae7dfb0531fd1c56b6d457734a70cf8d751687bbd439ad85b5d430df5bcb8a6947dee314506b7fdf876fc01143ad473aeebe46541ff1b013698a4873ad3ddb56
7
+ data.tar.gz: c12d839b62b00c03bfbff654552647bd350b09fd68798013f345914db4b305768ae61b114db465b5dd2f597033fb79f915f78697ef5ce337291d58a6f4cb19a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.9.8 - 2015-01-12
4
+ Bug fixes
5
+ - Created resources are now properly scoped by `resources_relation`
6
+ - Fixes broken signin form
7
+
3
8
  ### 0.9.7 - 2015-01-07
4
9
  Features
5
10
  - Support for Rails 4.2
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Godmin
2
2
 
3
- [![Gem Version](http://img.shields.io/gem/v/godmin.svg)](https://rubygems.org/gems/godmin)
4
- [![Build Status](https://img.shields.io/travis/varvet/godmin/master.svg)](https://travis-ci.org/varvet/godmin)
5
- [![Code Climate](https://codeclimate.com/github/varvet/godmin/badges/gpa.svg)](https://codeclimate.com/github/varvet/godmin)
3
+ [![Gem Version](http://img.shields.io/gem/v/godmin.svg?style=flat)](https://rubygems.org/gems/godmin)
4
+ [![Build Status](https://img.shields.io/travis/varvet/godmin/master.svg?style=flat)](https://travis-ci.org/varvet/godmin)
5
+ [![Code Climate](https://img.shields.io/codeclimate/github/varvet/godmin.svg?style=flat)](https://codeclimate.com/github/varvet/godmin)
6
6
 
7
7
  Godmin is an admin engine for Rails 4+.
8
8
 
@@ -1,9 +1,5 @@
1
- <%= simple_form_for(@admin_user, url: session_path) do |f| %>
2
- <div class="form-group">
3
- <%= f.input @admin_user.class.login_column, input_html: { class: "form-control" } %>
4
- </div>
5
- <div class="form-group">
6
- <%= f.input :password, input_html: { class: "form-control" } %>
7
- </div>
1
+ <%= form_for(@admin_user, url: session_path) do |f| %>
2
+ <%= f.text_field @admin_user.class.login_column %>
3
+ <%= f.password_field :password %>
8
4
  <%= f.submit translate_scoped("sessions.sign_in"), class: "btn btn-block btn-primary" %>
9
5
  <% end %>
@@ -79,7 +79,7 @@ module Godmin
79
79
  end
80
80
 
81
81
  def create
82
- @resource = resource_class.new(resource_params)
82
+ @resource = resources_relation.new(resource_params)
83
83
 
84
84
  respond_to do |format|
85
85
  if @resource.save
@@ -1,3 +1,3 @@
1
1
  module Godmin
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: godmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ljungblad
@@ -10,138 +10,138 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-01-07 00:00:00.000000000 Z
13
+ date: 2015-01-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.1.7
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
28
  version: 3.1.7
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: bootstrap-sass
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ~>
34
34
  - !ruby/object:Gem::Version
35
35
  version: 3.3.1.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ~>
41
41
  - !ruby/object:Gem::Version
42
42
  version: 3.3.1.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: bootstrap_form
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
49
  version: 2.2.0
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
54
+ - - ~>
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.2.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: coffee-rails
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - '>='
62
62
  - !ruby/object:Gem::Version
63
63
  version: '4.0'
64
- - - "<"
64
+ - - <
65
65
  - !ruby/object:Gem::Version
66
66
  version: '4.2'
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
71
+ - - '>='
72
72
  - !ruby/object:Gem::Version
73
73
  version: '4.0'
74
- - - "<"
74
+ - - <
75
75
  - !ruby/object:Gem::Version
76
76
  version: '4.2'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: momentjs-rails
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: 2.8.1
84
84
  type: :runtime
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: 2.8.1
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rails
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ~>
96
96
  - !ruby/object:Gem::Version
97
97
  version: '4.0'
98
98
  type: :runtime
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - "~>"
102
+ - - ~>
103
103
  - !ruby/object:Gem::Version
104
104
  version: '4.0'
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: sass-rails
107
107
  requirement: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: '4.0'
112
112
  type: :runtime
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">="
116
+ - - '>='
117
117
  - !ruby/object:Gem::Version
118
118
  version: '4.0'
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: selectize-rails
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - "~>"
123
+ - - ~>
124
124
  - !ruby/object:Gem::Version
125
125
  version: 0.11.2
126
126
  type: :runtime
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - "~>"
130
+ - - ~>
131
131
  - !ruby/object:Gem::Version
132
132
  version: 0.11.2
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: sqlite3
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ">="
137
+ - - '>='
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  type: :development
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ">="
144
+ - - '>='
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  description: Godmin is an admin engine for Rails 4+
@@ -151,10 +151,10 @@ executables: []
151
151
  extensions: []
152
152
  extra_rdoc_files: []
153
153
  files:
154
- - ".gitignore"
155
- - ".hound.yml"
156
- - ".rubocop.yml"
157
- - ".travis.yml"
154
+ - .gitignore
155
+ - .hound.yml
156
+ - .rubocop.yml
157
+ - .travis.yml
158
158
  - CHANGELOG.md
159
159
  - Gemfile
160
160
  - MIT-LICENSE
@@ -279,17 +279,17 @@ require_paths:
279
279
  - lib
280
280
  required_ruby_version: !ruby/object:Gem::Requirement
281
281
  requirements:
282
- - - ">="
282
+ - - '>='
283
283
  - !ruby/object:Gem::Version
284
284
  version: '0'
285
285
  required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  requirements:
287
- - - ">="
287
+ - - '>='
288
288
  - !ruby/object:Gem::Version
289
289
  version: '0'
290
290
  requirements: []
291
291
  rubyforge_project:
292
- rubygems_version: 2.2.0
292
+ rubygems_version: 2.4.4
293
293
  signing_key:
294
294
  specification_version: 4
295
295
  summary: Godmin is an admin engine for Rails 4+
@@ -339,4 +339,3 @@ test_files:
339
339
  - test/lib/godmin/policy_finder_test.rb
340
340
  - test/lib/godmin/resolver_test.rb
341
341
  - test/test_helper.rb
342
- has_rdoc: