mesmerize 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mesmerize (0.0.2)
4
+ mesmerize (0.0.3)
5
5
  commander (~> 4.1.2)
6
6
  faraday (~> 0.8.0)
7
7
  faraday_middleware (~> 0.8.7)
@@ -24,8 +24,8 @@ module Mesmerize
24
24
 
25
25
  def post_session(email, password)
26
26
  params = {
27
- email: email,
28
- password: password
27
+ :email => email,
28
+ :password => password
29
29
  }
30
30
 
31
31
  @connection.post("/api/sessions", params).on_complete do |env|
@@ -35,9 +35,9 @@ module Mesmerize
35
35
 
36
36
  def post_account(name, email, password)
37
37
  params = {
38
- name: name,
39
- email: email,
40
- password: password
38
+ :name => name,
39
+ :email => email,
40
+ :password => password
41
41
  }
42
42
 
43
43
  @connection.post("/api/accounts", params).on_complete do |env|
@@ -59,7 +59,7 @@ module Mesmerize
59
59
 
60
60
  def post_app(app)
61
61
  params = {
62
- name: app
62
+ :name => app
63
63
  }
64
64
 
65
65
  @connection.post("/api/apps", params).on_complete do |env|
@@ -69,7 +69,7 @@ module Mesmerize
69
69
 
70
70
  def post_release(app, release, file)
71
71
  params = {
72
- version: release.to_s
72
+ :version => release.to_s
73
73
  }
74
74
 
75
75
  @connection.post("/api/apps/#{app}/releases", params).on_complete do |env|
@@ -1,7 +1,9 @@
1
1
  include Mesmerize::Authentication
2
2
 
3
- require_relative 'commands/signup'
4
- require_relative 'commands/login'
5
- require_relative 'commands/logout'
6
- require_relative 'commands/create'
7
- require_relative 'commands/release'
3
+ $:.push File.expand_path('../', __FILE__)
4
+
5
+ require 'commands/signup'
6
+ require 'commands/login'
7
+ require 'commands/logout'
8
+ require 'commands/create'
9
+ require 'commands/release'
@@ -13,9 +13,11 @@ module Mesmerize::XcodeBuildInfo
13
13
  raise NilOutputError unless /\S/ === output
14
14
 
15
15
  lines = output.split(/\n/)
16
- hash = {project: lines.shift.match(/\"(.+)\"\:/)[1]}
16
+ hash = {}
17
17
  group = nil
18
18
 
19
+ hash[:project] = lines.shift.match(/\"(.+)\"\:/)[1]
20
+
19
21
  lines.each do |line|
20
22
  if /\:$/ === line
21
23
  group = line.strip[0...-1].downcase.gsub(/\s+/, '-')
data/lib/mesmerize.rb CHANGED
@@ -1,8 +1,10 @@
1
1
  module Mesmerize
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
4
4
 
5
- require_relative 'mesmerize/authentication'
6
- require_relative 'mesmerize/client'
7
- require_relative 'mesmerize/agvtool'
8
- require_relative 'mesmerize/xcodebuildinfo'
5
+ $:.push File.expand_path('../', __FILE__)
6
+
7
+ require 'mesmerize/authentication'
8
+ require 'mesmerize/client'
9
+ require 'mesmerize/agvtool'
10
+ require 'mesmerize/xcodebuildinfo'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mesmerize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70110925625560 !ruby/object:Gem::Requirement
16
+ requirement: &70109708707700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.6.1
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70110925625560
24
+ version_requirements: *70109708707700
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70110925624340 !ruby/object:Gem::Requirement
27
+ requirement: &70109708692420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.2
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70110925624340
35
+ version_requirements: *70109708692420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: commander
38
- requirement: &70110925622700 !ruby/object:Gem::Requirement
38
+ requirement: &70109708690680 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 4.1.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70110925622700
46
+ version_requirements: *70109708690680
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: faraday
49
- requirement: &70110925621040 !ruby/object:Gem::Requirement
49
+ requirement: &70109708689640 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.8.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70110925621040
57
+ version_requirements: *70109708689640
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: faraday_middleware
60
- requirement: &70110925619020 !ruby/object:Gem::Requirement
60
+ requirement: &70109708688580 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.8.7
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70110925619020
68
+ version_requirements: *70109708688580
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: netrc
71
- requirement: &70110925610520 !ruby/object:Gem::Requirement
71
+ requirement: &70109708687600 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: 0.7.2
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70110925610520
79
+ version_requirements: *70109708687600
80
80
  description: Command-Line Interface for Mesmerize
81
81
  email: m@mattt.me
82
82
  executables:
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -3942818382281952266
118
+ hash: -1925998566417013397
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: -3942818382281952266
127
+ hash: -1925998566417013397
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 1.8.15