lanyrd 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.md +1 -1
- data/lanyrd.gemspec +1 -1
- data/lib/lanyrd/client.rb +9 -0
- data/lib/lanyrd/version.rb +1 -1
- metadata +14 -19
data/Readme.md
CHANGED
data/lanyrd.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.homepage = "http://github.com/andrew/lanyrd"
|
10
10
|
|
11
11
|
gem.add_dependency 'faraday_middleware', '~> 0.9'
|
12
|
-
gem.add_dependency 'hashie', '~> 1.
|
12
|
+
gem.add_dependency 'hashie', '~> 1.0'
|
13
13
|
|
14
14
|
# Ruby 1.8 doesn't include JSON in the std lib
|
15
15
|
if RUBY_VERSION < "1.9"
|
data/lib/lanyrd/client.rb
CHANGED
@@ -48,7 +48,16 @@ module Lanyrd
|
|
48
48
|
conn.use FaradayMiddleware::Mashify
|
49
49
|
conn.adapter Faraday.default_adapter
|
50
50
|
end
|
51
|
+
|
52
|
+
# iPhone App HTTP Headers
|
51
53
|
conn.headers['X-Lanyrd-Auth'] = Time.now.hash.to_s
|
54
|
+
conn.headers['User-Agent'] = "Lanyrd-iOS/2.4.0 (iPhone OS 6.1.3; iPhone5,2 N42AP) build/61"
|
55
|
+
conn.headers['X-Lanyrd-Protocol'] = "4"
|
56
|
+
conn.headers['X-Lanyrd-Hardware'] = "320x568@2"
|
57
|
+
conn.headers['X-Lanyrd-DeviceID'] = "Device-String"
|
58
|
+
conn.headers['X-Lanyrd-PushEnvironment'] = "ios-production"
|
59
|
+
conn.headers['x-mycustomurl-intercept'] = "api"
|
60
|
+
|
52
61
|
conn
|
53
62
|
end
|
54
63
|
end
|
data/lib/lanyrd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lanyrd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday_middleware
|
16
|
-
requirement: &
|
16
|
+
requirement: &70104050642500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: '0.9'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70104050642500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hashie
|
27
|
-
requirement: &
|
27
|
+
requirement: &70104050678100 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: '1.0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70104050678100
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70104050650860 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70104050650860
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70104050649380 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '1.0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70104050649380
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70104050646620 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '2.6'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70104050646620
|
69
69
|
description: Ruby wrapper for the Lanyrd API
|
70
70
|
email:
|
71
71
|
- andrewnez@gmail.com
|
@@ -97,18 +97,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- - ! '>='
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
|
-
segments:
|
101
|
-
- 0
|
102
|
-
hash: 1200047985689583179
|
103
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
101
|
none: false
|
105
102
|
requirements:
|
106
103
|
- - ! '>='
|
107
104
|
- !ruby/object:Gem::Version
|
108
105
|
version: '0'
|
109
|
-
segments:
|
110
|
-
- 0
|
111
|
-
hash: 1200047985689583179
|
112
106
|
requirements: []
|
113
107
|
rubyforge_project:
|
114
108
|
rubygems_version: 1.8.11
|
@@ -118,3 +112,4 @@ summary: Ruby wrapper for the Lanyrd API
|
|
118
112
|
test_files:
|
119
113
|
- spec/client_spec.rb
|
120
114
|
- spec/spec_helper.rb
|
115
|
+
has_rdoc:
|