potassium 1.3.0 → 1.3.2

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: 84dfc5a86790a8f12766edb6d4630447f3dac300
4
- data.tar.gz: 81532c09ffb2c7b03425593defffd65f7fa955c8
3
+ metadata.gz: d7b6bba4fadef62ecd2c19c0ee8e0e770bdd29f7
4
+ data.tar.gz: 483d9813ba3eb348612c3ab0dbd05e26bba63112
5
5
  SHA512:
6
- metadata.gz: 5887cd67d48c639629936273ae689add1119330412a32acccc0f4196672164569c631ddd633b6a1b4687a231d623425fe81a5d4fda72e99860a4c11d55426219
7
- data.tar.gz: 3aea3f4d76d4113595962e423ba70e9adc537f77aaf54116ffb168282745fbdeb208665879db94a2bad7282d3d58d3890770ce11aa9e4e81886732ad7b089b14
6
+ metadata.gz: b98d850a195931173c883830f7742f656c25703beb82c16e3b152c5c9b4dee428426add9899d13b6dd1e0bd6b4bc35e380c7207a180fe0054311aec53a3cd6bc
7
+ data.tar.gz: 1fc2509e86ed50cad442301d9bcfe81f163a2fea592445b38db0f330097b7828e9f5582eba6ef8cdc1cfeece359feea353fa71d763dc82e302905c2bebf521b0
@@ -24,6 +24,13 @@ if get(:admin_mode)
24
24
 
25
25
  line = "@import \"active_admin/base\";"
26
26
  style = "app/assets/stylesheets/active_admin.css.scss"
27
+
28
+ style = if File.exist?(style)
29
+ style
30
+ else
31
+ "app/assets/stylesheets/active_admin.scss"
32
+ end
33
+
27
34
  gsub_file style, /(#{Regexp.escape(line)})/mi do |match|
28
35
  <<-HERE.gsub(/^ {11}/, '')
29
36
  #{line}
@@ -1,13 +1,15 @@
1
1
  gather_gem('rack-cors', '~> 0.4.0')
2
- application %{
3
- # Enables CORS for all requests
4
- config.middleware.insert_before 0, "Rack::Cors" do
5
- allow do
6
- origins '*'
7
- resource '*',
8
- :headers => :any,
9
- :expose => ['X-Page', 'X-PageTotal'],
10
- :methods => [:get, :post, :delete, :put, :options]
2
+ after(:gem_install) do
3
+ application %{
4
+ # Enables CORS for all requests
5
+ config.middleware.insert_before 0, "Rack::Cors" do
6
+ allow do
7
+ origins '*'
8
+ resource '*',
9
+ :headers => :any,
10
+ :expose => ['X-Page', 'X-PageTotal'],
11
+ :methods => [:get, :post, :delete, :put, :options]
12
+ end
11
13
  end
12
- end
13
- }
14
+ }
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Potassium
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potassium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - juliogarciag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-28 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gli
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.12.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.12.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '4.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '4.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: inquirer
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: gems
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.8'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.8'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: semantic
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '1.4'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.4'
111
111
  description: An application generator from Platanus
@@ -116,8 +116,8 @@ executables:
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - .editorconfig
120
- - .gitignore
119
+ - ".editorconfig"
120
+ - ".gitignore"
121
121
  - CHANGELOG.md
122
122
  - Gemfile
123
123
  - LICENSE.txt
@@ -193,17 +193,17 @@ require_paths:
193
193
  - lib
194
194
  required_ruby_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - '>='
196
+ - - ">="
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  requirements:
201
- - - '>='
201
+ - - ">="
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  requirements: []
205
205
  rubyforge_project:
206
- rubygems_version: 2.4.7
206
+ rubygems_version: 2.2.2
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: An application generator from Platanus