softwear-lib 1.10.2 → 1.10.3

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: db57f2e8d8c3c33a1c5ec68395e4a006a978d69a
4
- data.tar.gz: 037c8fc7954b5a88c95a8eecde1fddde72881f5d
3
+ metadata.gz: e941e26e7fa9778f586741eb6e80a1bd497edf39
4
+ data.tar.gz: fdba4d5f1052ebdc8de933e014763ac33261cb39
5
5
  SHA512:
6
- metadata.gz: a13a6533a5f432d732c1b8b884f1c7bae53f050bf7157276c01ae469b760c5ebf398b4e298af7c9fb57f9aaf6eb7b4702c6e33a50688297b61deb3fe488fb63f
7
- data.tar.gz: 8b374fb141cd4f984e10339293126ce9adf171bf0e86db8b865f5153173ddb66662ab02c369b7771518b2cc09fee96abe8895bedcaae46b6923d880c841f2fc7
6
+ metadata.gz: de9556e513821c4aea3377bf59a17be6051e8e73674dddc8f260e9835b20f370c81f90060935671c3bcf81e5c3f7e744fe577a08be317a8353126a4ea0dfc9cc
7
+ data.tar.gz: 2688f07922cf02f46b0ce1ef8d043742622d11df1f026721a2092f065ce54bf206c397f030d5195067f78e02a30f36645132766f512947cf459fe4bf19eeda9f
data/README.md CHANGED
@@ -20,7 +20,31 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ To use apps locally without auth_server:
24
+ <br />
25
+ <br />
26
+ <code>$ AUTH_SERVER=false bundle exec rails s</code>
27
+ <br />
28
+ <br />
29
+ Uses data from local users.yml.
30
+ <br />
31
+
32
+ Expected format for users.yml:
33
+
34
+ <pre>
35
+ user's email:
36
+ first_name: user's first name
37
+ last_name: user's last name
38
+ profile_picture: local file location
39
+ roles:
40
+ - role1
41
+ - role2
42
+ - rolen
43
+ rights:
44
+ - right1
45
+ - right2
46
+ - rightn
47
+ </pre>
24
48
 
25
49
  ## Contributing
26
50
 
@@ -343,6 +343,10 @@ module Softwear
343
343
  object.instance_variable_set(:@persisted, true)
344
344
  object
345
345
  end
346
+
347
+ rescue JSON::ParserError => e
348
+ Rails.logger.error "Bad user model JSON: ``` #{json} ```"
349
+ nil
346
350
  end
347
351
 
348
352
  def filter_all(method, options)
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.10.2"
3
+ VERSION = "1.10.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.2
4
+ version: 1.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-12 00:00:00.000000000 Z
11
+ date: 2016-11-10 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: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.2.0
48
48
  type: :development
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: 3.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 4.2.5
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.5
69
69
  description:
@@ -75,8 +75,8 @@ executables:
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - ".gitignore"
79
- - ".rspec"
78
+ - .gitignore
79
+ - .rspec
80
80
  - Gemfile
81
81
  - LICENSE.txt
82
82
  - README.md
@@ -111,17 +111,17 @@ require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - '>='
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ">="
119
+ - - '>='
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.4.8
124
+ rubygems_version: 2.0.14.1
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Common gems and logic for all softwear apps.