nike_v2 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ext/core_ext.rb CHANGED
@@ -6,7 +6,7 @@ class String
6
6
  tr("-", "_").
7
7
  downcase
8
8
  end
9
- def camelize(first_letter_in_uppercase = false)
9
+ def ss_camelize(first_letter_in_uppercase = false)
10
10
  lower_case_and_underscored_word = self.to_s
11
11
  if first_letter_in_uppercase
12
12
  lower_case_and_underscored_word.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
@@ -17,12 +17,7 @@ class String
17
17
  end
18
18
 
19
19
  class Symbol
20
- def camelize(first_letter_in_uppercase = false)
21
- lower_case_and_underscored_word = self.to_s
22
- if first_letter_in_uppercase
23
- lower_case_and_underscored_word.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }.to_sym
24
- else
25
- (lower_case_and_underscored_word[0].downcase + lower_case_and_underscored_word.camelize[1..-1]).to_sym
26
- end
20
+ def ss_camelize(first_letter_in_uppercase = false)
21
+ self.to_s.ss_camelize.to_sym
27
22
  end
28
23
  end
@@ -1,3 +1,4 @@
1
+ require 'httparty'
1
2
  module NikeV2
2
3
  class Resource < Base
3
4
  include HTTParty
@@ -1,3 +1,3 @@
1
1
  module NikeV2
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
data/lib/nike_v2.rb CHANGED
@@ -1,7 +1,4 @@
1
- require 'httparty'
2
- require 'forwardable'
3
1
  require 'alchemist'
4
- require 'ext/core_ext'
5
2
 
6
3
  require 'nike_v2/base'
7
4
  require 'nike_v2/metric'
@@ -13,4 +10,5 @@ require 'nike_v2/activity'
13
10
  require 'nike_v2/activities'
14
11
  require 'nike_v2/summary'
15
12
  require 'nike_v2/gps_data'
16
- require 'nike_v2/version'
13
+
14
+ require 'ext/core_ext'
data/nike_v2.gemspec CHANGED
@@ -1,6 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path('../lib', __FILE__)
3
- require 'nike_v2'
2
+ require File.expand_path("../lib/nike_v2/version", __FILE__)
4
3
 
5
4
  Gem::Specification.new do |s|
6
5
  s.name = 'nike_v2'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nike_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: