wcc-data 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env.example +1 -1
- data/.gitignore +1 -1
- data/Gemfile +2 -0
- data/bin/rspec +17 -0
- data/circle.yml +1 -1
- data/lib/wcc/data/nucleus/user.rb +2 -1
- data/lib/wcc/data/version.rb +1 -1
- data/spec/wcc/data/rack_client_app_token_auth_spec.rb +1 -1
- data/wcc-data.gemspec +4 -2
- metadata +10 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d35f47f7f6962b5ddfc75e39b1acc45b7bc0feb
|
|
4
|
+
data.tar.gz: 88c41cc3ce1c6156456bd46df5f49dbd05310846
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6e88816534473891adfe08e0dd0b253ed2c1195b0d899f6baeb8883c60b339ea62e89f7e17b59ab9b0d50d141a28b5797492c4b92c6c27af734c8759179e0e8
|
|
7
|
+
data.tar.gz: ae4b3f86595a1f523572e100de67386cb23d9a9d175bfc67fc367f2ba8bcbbc008c0933a631eefa9e82d0999337f0a0a87ef808f987014b032ab0a0dc17e112d
|
data/.env.example
CHANGED
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/bin/rspec
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
#
|
|
4
|
+
# This file was generated by Bundler.
|
|
5
|
+
#
|
|
6
|
+
# The application 'rspec' is installed as part of a gem, and
|
|
7
|
+
# this file is here to facilitate running it.
|
|
8
|
+
#
|
|
9
|
+
|
|
10
|
+
require "pathname"
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
12
|
+
Pathname.new(__FILE__).realpath)
|
|
13
|
+
|
|
14
|
+
require "rubygems"
|
|
15
|
+
require "bundler/setup"
|
|
16
|
+
|
|
17
|
+
load Gem.bin_path("rspec-core", "rspec")
|
data/circle.yml
CHANGED
|
@@ -9,13 +9,14 @@ module WCC::Data::Nucleus
|
|
|
9
9
|
attribute :email
|
|
10
10
|
attribute :access_level_id
|
|
11
11
|
attribute :arena_id, writer: true
|
|
12
|
+
attribute :rock_id, writer: true
|
|
12
13
|
attribute :created_at
|
|
13
14
|
attribute :updated_at
|
|
14
15
|
attribute :user_reviewed_at, writer: true
|
|
15
16
|
attribute :contact
|
|
16
17
|
attribute :address
|
|
17
18
|
|
|
18
|
-
SAVE_ATTRS = %i[arena_id user_reviewed_at]
|
|
19
|
+
SAVE_ATTRS = %i[arena_id rock_id user_reviewed_at]
|
|
19
20
|
|
|
20
21
|
def contact
|
|
21
22
|
@contact ||= Contact.new self[:contact].merge("user_id" => id)
|
data/lib/wcc/data/version.rb
CHANGED
|
@@ -212,7 +212,7 @@ RSpec.describe WCC::Data::RackClientAppTokenAuth do
|
|
|
212
212
|
it "returns a 403 response" do
|
|
213
213
|
response = auth.call(env)
|
|
214
214
|
|
|
215
|
-
expect(response).to eq([403, {}, '{"error":"Invalid Bearer Token"}'])
|
|
215
|
+
expect(response).to eq([403, {}, ['{"error":"Invalid Bearer Token"}']])
|
|
216
216
|
end
|
|
217
217
|
end
|
|
218
218
|
end
|
data/wcc-data.gemspec
CHANGED
|
@@ -6,8 +6,8 @@ require 'wcc/data/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "wcc-data"
|
|
8
8
|
spec.version = WCC::Data::VERSION
|
|
9
|
-
spec.authors = ["
|
|
10
|
-
spec.email = ["
|
|
9
|
+
spec.authors = ["Watermark Dev"]
|
|
10
|
+
spec.email = ["dev@watermark.org"]
|
|
11
11
|
spec.description = %q{Watermark's library for interapp communication via APIs}
|
|
12
12
|
spec.summary = %q{Watermark's library for interapp communication via APIs}
|
|
13
13
|
spec.homepage = ""
|
|
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
+
spec.required_ruby_version = '~> 2.2'
|
|
22
|
+
|
|
21
23
|
spec.add_dependency "faraday", "~> 0.8"
|
|
22
24
|
|
|
23
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wcc-data
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Watermark Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -96,8 +96,9 @@ dependencies:
|
|
|
96
96
|
version: '0'
|
|
97
97
|
description: Watermark's library for interapp communication via APIs
|
|
98
98
|
email:
|
|
99
|
-
-
|
|
100
|
-
executables:
|
|
99
|
+
- dev@watermark.org
|
|
100
|
+
executables:
|
|
101
|
+
- rspec
|
|
101
102
|
extensions: []
|
|
102
103
|
extra_rdoc_files: []
|
|
103
104
|
files:
|
|
@@ -108,6 +109,7 @@ files:
|
|
|
108
109
|
- LICENSE.txt
|
|
109
110
|
- README.md
|
|
110
111
|
- Rakefile
|
|
112
|
+
- bin/rspec
|
|
111
113
|
- circle.yml
|
|
112
114
|
- lib/wcc/data.rb
|
|
113
115
|
- lib/wcc/data/config.rb
|
|
@@ -161,9 +163,9 @@ require_paths:
|
|
|
161
163
|
- lib
|
|
162
164
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
165
|
requirements:
|
|
164
|
-
- - "
|
|
166
|
+
- - "~>"
|
|
165
167
|
- !ruby/object:Gem::Version
|
|
166
|
-
version: '
|
|
168
|
+
version: '2.2'
|
|
167
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
170
|
requirements:
|
|
169
171
|
- - ">="
|
|
@@ -171,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
171
173
|
version: '0'
|
|
172
174
|
requirements: []
|
|
173
175
|
rubyforge_project:
|
|
174
|
-
rubygems_version: 2.6.
|
|
176
|
+
rubygems_version: 2.6.11
|
|
175
177
|
signing_key:
|
|
176
178
|
specification_version: 4
|
|
177
179
|
summary: Watermark's library for interapp communication via APIs
|