share_meow_client 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.travis.yml +4 -0
- data/README.md +5 -2
- data/lib/helpers/configuration.rb +3 -1
- data/lib/share_meow_client/version.rb +1 -1
- data/share_meow_client.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 685696ec4b8beb10e873f9ee2d6bee9c75f4873d
|
4
|
+
data.tar.gz: 858866ab55611b4d32a99bcf5a81ca38c614148b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95f3cb6a186139d567969864f1d568409dccf9498388f24095bfe769d0b15acd8b7d4009a67fc51c10f9fd7691b3f318bc99b20dbe35cf2ad542e1b94585bb9e
|
7
|
+
data.tar.gz: 0079cc89e0df2a138bd143957319f60b3506c703bd7e070aff3d7aa7c6dc53d0cc8d8802efcb07a07066ff3c945c2034a21a24a678f4e2808572449ef5cc4c36
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
+
- 2.3.0
|
3
4
|
- 2.2.4
|
4
5
|
- 2.1.8
|
5
6
|
before_install: gem install bundler -v 1.10.6
|
6
7
|
script:
|
7
8
|
- bundle exec rspec
|
8
9
|
- bundle exec rubocop --config .rubocop.yml
|
10
|
+
addons:
|
11
|
+
code_climate:
|
12
|
+
repo_token: f4a10a44f2e0b05a4709f181911dd2e0159d3f0703dc5454fdb7117b9a067af4
|
data/README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
# ShareMeowClient :heart_eyes_cat:
|
2
|
+
[![Build Status](https://travis-ci.org/producthunt/ShareMeowClient.svg?branch=master)](https://travis-ci.org/producthunt/ShareMeowClient)
|
3
|
+
[![Test Coverage](https://codeclimate.com/github/producthunt/ShareMeowClient/badges/coverage.svg)](https://codeclimate.com/github/producthunt/ShareMeowClient/coverage)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/producthunt/ShareMeowClient/badges/gpa.svg)](https://codeclimate.com/github/producthunt/ShareMeowClient)
|
2
5
|
|
3
6
|
Ruby client for easily generating ShareMeow URL's. :star:
|
4
7
|
|
@@ -26,7 +29,7 @@ Or install it yourself as:
|
|
26
29
|
First, you'll need to set the configuration variables in an initializer.
|
27
30
|
|
28
31
|
```Ruby
|
29
|
-
# config/initializers/
|
32
|
+
# config/initializers/share_meow_client.rb
|
30
33
|
ShareMeowClient.configuration do |config|
|
31
34
|
config.base_url = 'https://your-share-meow.example.com'
|
32
35
|
config.secret_key = 'a_very_long_secret_key'
|
@@ -50,7 +53,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
50
53
|
|
51
54
|
## Contributing
|
52
55
|
|
53
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/producthunt/
|
56
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/producthunt/ShareMeowClient. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org/) code of conduct.
|
54
57
|
|
55
58
|
|
56
59
|
## License
|
@@ -28,7 +28,9 @@ module Configuration
|
|
28
28
|
end
|
29
29
|
|
30
30
|
define_class_method name do
|
31
|
-
class_variable_get("@@#{name}")
|
31
|
+
value = class_variable_get("@@#{name}")
|
32
|
+
raise "#{self}.#{name} was not set. Please set it in your #{self} initializer." if value.nil?
|
33
|
+
value
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
data/share_meow_client.gemspec
CHANGED
@@ -24,5 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
25
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.4'
|
27
|
+
spec.add_development_dependency 'codeclimate-test-reporter'
|
27
28
|
spec.add_development_dependency 'rubocop', '~> 0.35'
|
28
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: share_meow_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Coutermarsh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: codeclimate-test-reporter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rubocop
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,3 +127,4 @@ signing_key:
|
|
113
127
|
specification_version: 4
|
114
128
|
summary: Ruby client for generating ShareMeow URLs.
|
115
129
|
test_files: []
|
130
|
+
has_rdoc:
|