ns_settings_ui 1.0.0 → 1.1.0

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: 620d3d4a37036756b288e67585ce6e0438dd3755
4
- data.tar.gz: d2ac6935cc37e0bf72b7427e5bef7859033b454a
3
+ metadata.gz: b8665dab191f28ece8eadccaead286f6fa658b79
4
+ data.tar.gz: 11e8c4de46aabde8b97c84a2c21866a2d53856ab
5
5
  SHA512:
6
- metadata.gz: aa7c499bd852dfb1f66bdc3e079fc5f0499a8b282ee5a9f5a9fa4b3ee53c2bc50fa1c347efc4cb461bd63b6e3c4321bde508786e8d39facb98361d76a920c66b
7
- data.tar.gz: a2f0cfb55baefacd78f29004d242a6da74f2f33c20be924c9872836c5dd733ed7d18c793b3f66eaeab3d160d3f87cae35716334467e3846b943feabacf4ddac9
6
+ metadata.gz: b1fe0313149eee0848529967798160389128c1e4712a7f001e20f00d18b74d7ccdbadd379e66f92ba122b625d233807f0437cfccb3c968fab68cd167eec6dad7
7
+ data.tar.gz: adec6c717e103a95ecd0d92a68683d8a0510b8e352dd7b82fae295315bdefc84a15b77814b7f964f21c8d18b1dd4d4afa932650aea621f316aca6e21416c8a93
data/.env ADDED
@@ -0,0 +1,3 @@
1
+ EXECUTOR_NUMBER=dev
2
+ DOCKER_IMAGE_NAME=ns_settings_ui
3
+ DOCKER_IMAGE_TAG=latest
data/.gitignore CHANGED
@@ -8,7 +8,10 @@ spec/dummy/tmp/
8
8
  spec/dummy/.sass-cache
9
9
  Gemfile.lock
10
10
 
11
+ gemfiles/*.gemfile.lock
11
12
  # Skip emacs backup files
12
13
  *~
13
14
  [#]*[#]
14
15
  .[#]*
16
+ spec/reports
17
+
data/Appraisals CHANGED
@@ -1,4 +1,4 @@
1
- [4.2, 3.2].each do |version|
1
+ [5.0, 4.2, 3.2].each do |version|
2
2
  appraise "rails_#{version}" do
3
3
  gem 'rails', "~> #{version}.0"
4
4
  end
data/Jenkinsfile ADDED
@@ -0,0 +1,84 @@
1
+ stage 'Checkout'
2
+
3
+ setDockerImageName()
4
+ discardOldBuilds()
5
+
6
+ node {
7
+ withCleanup {
8
+ checkout scm
9
+ pack()
10
+ }
11
+ }
12
+
13
+ def appNode(String rubyVersion) {
14
+ node('docker') {
15
+ withEnv(["RUBY_VERSION=${rubyVersion}"]) {
16
+ withCleanup {
17
+ unpack()
18
+
19
+ setupGemsDockerVolume(rubyVersion, env.EXECUTOR_NUMBER)
20
+
21
+ stage "$rubyVersion - Setup"
22
+ withDockerCompose { compose ->
23
+ resolveDependencies(compose, rubyVersion)
24
+
25
+ test(compose, rubyVersion)
26
+
27
+ checkstyle(compose, rubyVersion)
28
+
29
+ stage "$rubyVersion - Cleanup"
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ appNode('ruby-2.1')
37
+ appNode('ruby-2.2')
38
+ appNode('ruby-2.3')
39
+
40
+ def setupGemsDockerVolume(String rubyVersion, String executorNumber) {
41
+ stage name: "$rubyVersion - Setup Docker Volume", concurrency: 1
42
+ setupDockerVolume("gems-$executorNumber-$rubyVersion")
43
+ }
44
+
45
+ def resolveDependencies(me.knapik.DockerCompose compose, String rubyVersion) {
46
+ stage "$rubyVersion - Resolve Dependencies"
47
+ compose.exec('app', "bundle install --quiet")
48
+ compose.exec('app', "appraisal install")
49
+ }
50
+
51
+ def test(me.knapik.DockerCompose compose, String rubyVersion) {
52
+ stage "$rubyVersion - Tests"
53
+ try {
54
+ compose.exec('app', "bundle exec rake app:db:schema:load")
55
+ compose.exec('app', "bundle exec rake app:ci:setup:rspec spec")
56
+ } finally {
57
+ publishTestResults()
58
+ }
59
+ }
60
+
61
+ def checkstyle(me.knapik.DockerCompose compose, String rubyVersion) {
62
+ stage "$rubyVersion - Static Analysis"
63
+ try {
64
+ compose.exec('app', "bundle exec rake app:ci:rubocop")
65
+ } finally {
66
+ publishStyleCheckResults()
67
+ }
68
+ }
69
+
70
+ def publishTestResults() {
71
+ step([$class: 'JUnitResultArchiver', testResults: 'spec/reports/*.xml,test/reports/*.xml'])
72
+ }
73
+
74
+ def publishStyleCheckResults() {
75
+ step([$class: 'CheckStylePublisher', pattern: 'checkstyle.xml'])
76
+ }
77
+
78
+ def pack() {
79
+ stash name: 'source', useDefaultExcludes: false
80
+ }
81
+
82
+ def unpack() {
83
+ unstash 'source'
84
+ }
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](http://jenkins.nielsensocial.u2i.eu/buildStatus/icon?job=(master) ns_settings_ui)](http://jenkins.nielsensocial.u2i.eu/job/(master) ns_settings_ui)
1
+ [![Build Status](http://jenkins.talkwit.tv/buildStatus/icon?job=u2i/ns_settings_ui/master)](http://jenkins.talkwit.tv/job/u2i/job/ns_settings_ui/job/master/)
2
2
 
3
3
  # NsSettingsUi
4
4
 
@@ -0,0 +1,20 @@
1
+ version: '2'
2
+ volumes:
3
+ gems:
4
+ external:
5
+ name: gems-${EXECUTOR_NUMBER}-${RUBY_VERSION}
6
+ services:
7
+ app:
8
+ build:
9
+ context: ./docker/${RUBY_VERSION}
10
+ args:
11
+ host_uid: $HOST_UID
12
+ image: ${DOCKER_IMAGE_NAME}-${RUBY_VERSION}:${DOCKER_IMAGE_TAG}
13
+ environment:
14
+ - GEM_HOME=/gems
15
+ - BUNDLE_PATH=/gems
16
+ - GIT_DISCOVERY_ACROSS_FILESYSTEM=true
17
+ volumes:
18
+ - .:/code
19
+ - gems:/gems
20
+
@@ -0,0 +1,22 @@
1
+ FROM ruby:2.1
2
+ MAINTAINER Michał Knapik <michal.knapik@u2i.com>
3
+
4
+ RUN wget --quiet --output-document=dumb-init.deb \
5
+ https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64.deb && \
6
+ dpkg --install dumb-init.deb && \
7
+ rm dumb-init.deb
8
+
9
+ ARG host_uid
10
+ RUN (getent passwd $host_uid > /dev/null) || adduser --quiet --disabled-password --gecos '' dummy --uid $host_uid
11
+
12
+ RUN mkdir -p /gems && chown $host_uid /gems
13
+ VOLUME /gems
14
+
15
+ USER $host_uid
16
+
17
+ RUN bundle config --global jobs 4
18
+
19
+ WORKDIR /code
20
+
21
+ ENTRYPOINT ["/usr/bin/dumb-init", "--"]
22
+ CMD ["tail", "-f", "/dev/null"]
@@ -0,0 +1,22 @@
1
+ FROM ruby:2.2
2
+ MAINTAINER Michał Knapik <michal.knapik@u2i.com>
3
+
4
+ RUN wget --quiet --output-document=dumb-init.deb \
5
+ https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64.deb && \
6
+ dpkg --install dumb-init.deb && \
7
+ rm dumb-init.deb
8
+
9
+ ARG host_uid
10
+ RUN (getent passwd $host_uid > /dev/null) || adduser --quiet --disabled-password --gecos '' dummy --uid $host_uid
11
+
12
+ RUN mkdir -p /gems && chown $host_uid /gems
13
+ VOLUME /gems
14
+
15
+ USER $host_uid
16
+
17
+ RUN bundle config --global jobs 4
18
+
19
+ WORKDIR /code
20
+
21
+ ENTRYPOINT ["/usr/bin/dumb-init", "--"]
22
+ CMD ["tail", "-f", "/dev/null"]
@@ -0,0 +1,22 @@
1
+ FROM ruby:2.3
2
+ MAINTAINER Michał Knapik <michal.knapik@u2i.com>
3
+
4
+ RUN wget --quiet --output-document=dumb-init.deb \
5
+ https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64.deb && \
6
+ dpkg --install dumb-init.deb && \
7
+ rm dumb-init.deb
8
+
9
+ ARG host_uid
10
+ RUN (getent passwd $host_uid > /dev/null) || adduser --quiet --disabled-password --gecos '' dummy --uid $host_uid
11
+
12
+ RUN mkdir -p /gems && chown $host_uid /gems
13
+ VOLUME /gems
14
+
15
+ USER $host_uid
16
+
17
+ RUN bundle config --global jobs 4
18
+
19
+ WORKDIR /code
20
+
21
+ ENTRYPOINT ["/usr/bin/dumb-init", "--"]
22
+ CMD ["tail", "-f", "/dev/null"]
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0"
6
+ gem "rails-controller-testing"
7
+
8
+ gemspec :path => "../"
@@ -1,3 +1,3 @@
1
1
  module NsSettingsUi
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -18,20 +18,24 @@ Gem::Specification.new do |s|
18
18
  s.files = `git ls-files -z`.split("\x0")
19
19
  s.test_files = Dir['spec/**/*']
20
20
 
21
- s.add_dependency 'rails', '>= 3.2.18', '< 5'
21
+ s.add_dependency 'rails', '>= 3.2.18', '< 6'
22
22
 
23
23
  s.add_development_dependency 'appraisal', '~> 2.1'
24
24
  s.add_development_dependency 'sqlite3', '~> 1.3'
25
25
  s.add_development_dependency 'rspec', '~> 3.4'
26
26
  s.add_development_dependency 'rspec-rails', '~> 3.4'
27
27
  s.add_development_dependency 'rspec-its', '~> 1.2'
28
- s.add_development_dependency 'guard', '~> 2.13'
29
- s.add_development_dependency 'guard-rspec', '~> 4.6'
30
- s.add_development_dependency 'guard-rubocop', '~> 1.2'
31
28
  s.add_development_dependency 'machinist', '~> 2.0'
32
29
  s.add_development_dependency 'database_cleaner', '~> 1.5'
33
30
  s.add_development_dependency 'u2i-ci_utils', '~> 2.0'
34
31
  s.add_development_dependency 'bundler', '~> 1.5'
35
32
  s.add_development_dependency 'rake', '~> 11.1'
36
33
  s.add_development_dependency 'test-unit', '~> 3.1'
34
+ s.add_development_dependency 'rubocop-rspec', '~> 1.4.0'
35
+
36
+ s.add_development_dependency 'guard', '~> 2.13'
37
+ s.add_development_dependency 'guard-rspec', '~> 4.6'
38
+ s.add_development_dependency 'guard-rubocop', '~> 1.2'
39
+ s.add_development_dependency 'ruby_dep', '~> 1.3.1'
40
+ s.add_development_dependency 'listen', '~> 3.0.0'
37
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns_settings_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Krawczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.2.18
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5'
22
+ version: '6'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.2.18
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5'
32
+ version: '6'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: appraisal
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -101,131 +101,173 @@ dependencies:
101
101
  - !ruby/object:Gem::Version
102
102
  version: '1.2'
103
103
  - !ruby/object:Gem::Dependency
104
- name: guard
104
+ name: machinist
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '2.13'
109
+ version: '2.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '2.13'
116
+ version: '2.0'
117
117
  - !ruby/object:Gem::Dependency
118
- name: guard-rspec
118
+ name: database_cleaner
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '4.6'
123
+ version: '1.5'
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '4.6'
130
+ version: '1.5'
131
131
  - !ruby/object:Gem::Dependency
132
- name: guard-rubocop
132
+ name: u2i-ci_utils
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '1.2'
137
+ version: '2.0'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '1.2'
144
+ version: '2.0'
145
145
  - !ruby/object:Gem::Dependency
146
- name: machinist
146
+ name: bundler
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '2.0'
151
+ version: '1.5'
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '2.0'
158
+ version: '1.5'
159
159
  - !ruby/object:Gem::Dependency
160
- name: database_cleaner
160
+ name: rake
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: '1.5'
165
+ version: '11.1'
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - "~>"
171
171
  - !ruby/object:Gem::Version
172
- version: '1.5'
172
+ version: '11.1'
173
173
  - !ruby/object:Gem::Dependency
174
- name: u2i-ci_utils
174
+ name: test-unit
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: '2.0'
179
+ version: '3.1'
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '2.0'
186
+ version: '3.1'
187
187
  - !ruby/object:Gem::Dependency
188
- name: bundler
188
+ name: rubocop-rspec
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '1.5'
193
+ version: 1.4.0
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: '1.5'
200
+ version: 1.4.0
201
201
  - !ruby/object:Gem::Dependency
202
- name: rake
202
+ name: guard
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
205
  - - "~>"
206
206
  - !ruby/object:Gem::Version
207
- version: '11.1'
207
+ version: '2.13'
208
208
  type: :development
209
209
  prerelease: false
210
210
  version_requirements: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - "~>"
213
213
  - !ruby/object:Gem::Version
214
- version: '11.1'
214
+ version: '2.13'
215
215
  - !ruby/object:Gem::Dependency
216
- name: test-unit
216
+ name: guard-rspec
217
217
  requirement: !ruby/object:Gem::Requirement
218
218
  requirements:
219
219
  - - "~>"
220
220
  - !ruby/object:Gem::Version
221
- version: '3.1'
221
+ version: '4.6'
222
222
  type: :development
223
223
  prerelease: false
224
224
  version_requirements: !ruby/object:Gem::Requirement
225
225
  requirements:
226
226
  - - "~>"
227
227
  - !ruby/object:Gem::Version
228
- version: '3.1'
228
+ version: '4.6'
229
+ - !ruby/object:Gem::Dependency
230
+ name: guard-rubocop
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - "~>"
234
+ - !ruby/object:Gem::Version
235
+ version: '1.2'
236
+ type: :development
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - "~>"
241
+ - !ruby/object:Gem::Version
242
+ version: '1.2'
243
+ - !ruby/object:Gem::Dependency
244
+ name: ruby_dep
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - "~>"
248
+ - !ruby/object:Gem::Version
249
+ version: 1.3.1
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - "~>"
255
+ - !ruby/object:Gem::Version
256
+ version: 1.3.1
257
+ - !ruby/object:Gem::Dependency
258
+ name: listen
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: 3.0.0
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - "~>"
269
+ - !ruby/object:Gem::Version
270
+ version: 3.0.0
229
271
  description: Engine providing key-value settings stored in db with a web UI.
230
272
  email:
231
273
  - michal.krawczyk@u2i.com
@@ -233,12 +275,14 @@ executables: []
233
275
  extensions: []
234
276
  extra_rdoc_files: []
235
277
  files:
278
+ - ".env"
236
279
  - ".gitignore"
237
280
  - ".rubocop.yml"
238
281
  - ".rubocop_u2i.yml"
239
282
  - Appraisals
240
283
  - Gemfile
241
284
  - Guardfile
285
+ - Jenkinsfile
242
286
  - MIT-LICENSE
243
287
  - README.md
244
288
  - Rakefile
@@ -261,8 +305,13 @@ files:
261
305
  - config/routes.rb
262
306
  - db/migrate/20151210214903_create_ns_settings_ui_settings.rb
263
307
  - db/migrate/20151215081718_add_value_type_to_ns_settings_ui_settings.rb
308
+ - docker-compose.yml
309
+ - docker/ruby-2.1/Dockerfile
310
+ - docker/ruby-2.2/Dockerfile
311
+ - docker/ruby-2.3/Dockerfile
264
312
  - gemfiles/rails_3.2.gemfile
265
313
  - gemfiles/rails_4.2.gemfile
314
+ - gemfiles/rails_5.0.gemfile
266
315
  - lib/ns_settings_ui.rb
267
316
  - lib/ns_settings_ui/engine.rb
268
317
  - lib/ns_settings_ui/version.rb
@@ -376,7 +425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
376
425
  version: '0'
377
426
  requirements: []
378
427
  rubyforge_project:
379
- rubygems_version: 2.6.2
428
+ rubygems_version: 2.5.1
380
429
  signing_key:
381
430
  specification_version: 4
382
431
  summary: NS Settings