lc-api 0.9.4 → 0.9.5

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.
Files changed (3) hide show
  1. data/lib/lc-api/resource.rb +1 -0
  2. data/lib/lc-api.rb +4 -0
  3. metadata +17 -1
@@ -37,6 +37,7 @@ module LcApi
37
37
  end
38
38
 
39
39
  def member_name
40
+ ActiveSupport::Inflector.inflections { |inflect| inflect.irregular 'staff', 'staff' } # ovveride staff pluralizing to staffs
40
41
  name.split('::').last.downcase.pluralize
41
42
  end
42
43
 
data/lib/lc-api.rb CHANGED
@@ -16,5 +16,9 @@ module LcApi
16
16
  @base_uri || 'http://0.0.0.0:3000/v1/'
17
17
  end
18
18
 
19
+ def key
20
+ @key || "Key Not Set"
21
+ end
22
+
19
23
  end
20
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lc-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -44,6 +44,22 @@ dependencies:
44
44
  - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.2.1
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.13.0
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 2.13.0
47
63
  description: A Ruby wrapper for the Lifechurch.tv REST API
48
64
  email: webmaster@lifechurch.tv
49
65
  executables: []