jiveapps 0.0.5 → 0.0.6

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.
data/Gemfile CHANGED
@@ -5,6 +5,6 @@ group :test do
5
5
  gem 'webmock', '>= 1.6.1'
6
6
  end
7
7
 
8
- gem 'rest-client', '>= 1.6.1'
9
- gem 'rubigen', '>= 1.5.5'
10
- gem 'json_pure', '>= 1.4.6'
8
+ gem 'activesupport', '2.3.5'
9
+ gem 'rest-client', '1.6.1'
10
+ gem 'rubigen', '1.5.5'
@@ -1,3 +1,9 @@
1
+ === 0.0.6 2010-12-17
2
+ * Bug Fixes
3
+ * Fix NoMethodError on Step 4 of jiveapps create. (remove the json_pure gem and use the JSON encoding/decoding functionality already in activesupport)
4
+ * Fix "Could not find main page README.rdoc" warning on install
5
+ * Fix issue where CLT re-uploads SSH key when entering user credentials, gets 422 response / stack trace if it already exists on the server
6
+
1
7
  === 0.0.5 2010-12-06
2
8
  * Bug Fixes
3
9
  * Re-enabled re-authentication
@@ -1,26 +1,47 @@
1
1
  = jiveapps
2
2
 
3
- * http://github.com/#{github_username}/#{project_name}
3
+ * https://github.com/jivesoftware/jiveapps-gem
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- FIX (describe your package)
7
+ The "jiveapps" gem is a set of command line tools for building and hosting Jive App front-ends.
8
+
9
+ These tools are all about making app development as easy as possible. After you install the tools, it only takes a single command to:
10
+
11
+ Create a new app - a simple Hello World application.
12
+ Set up version control for your code using Git.
13
+ Host the app code online at Jive's AppHosting server.
14
+ Register the app on the Jive Apps Marketplace as an app "in development".
15
+ Install the app on your default app dashboard in the Jive Apps Sandbox.
16
+
17
+ After you install, use this simple workflow to make changes and see them reflected in the sandbox:
18
+
19
+ Make a change to the code on your local machine.
20
+ Commit the changes to your local Git repository.
21
+ Push the changes to the remote Jive Apps repository. This automatically updates the hosted copy on the Jive AppHosting server.
22
+ Refresh the app dashboard or canvas page on the Jive Apps Sandbox and see your changes.
8
23
 
9
- == FEATURES/PROBLEMS:
24
+ == SYNOPSIS:
10
25
 
11
- * FIX (list of features or problems)
26
+ Simple Workflow Example
12
27
 
13
- == SYNOPSIS:
28
+ $ jiveapps create myapp # create a new app named "myapp"
29
+ $ cd myapp # switch into app's directory
30
+
31
+ ... develop your app ...
14
32
 
15
- FIX (code sample of usage)
33
+ $ git add . # stage all files for commit
34
+ $ git commit -m "some updates to my app" # commit to your local git repository
35
+ $ git push jiveapps master # push updates to jive
16
36
 
17
37
  == REQUIREMENTS:
18
38
 
19
- * FIX (list of requirements)
39
+ 1. Sign up as a developer on the Jive Apps Developer Community: https://developers.jivesoftware.com
40
+ 2. Follow the setup instructions here: https://developers.jivesoftware.com/community/docs/DOC-1115
20
41
 
21
42
  == INSTALL:
22
43
 
23
- * FIX (sudo gem install, anything else)
44
+ sudo gem install jiveapps
24
45
 
25
46
  == LICENSE:
26
47
 
data/Rakefile CHANGED
@@ -14,15 +14,13 @@ Hoe.plugin :newgem
14
14
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
15
15
  $hoe = Hoe.spec 'jiveapps' do
16
16
  self.developer 'Scott Becker', 'becker.scott@gmail.com'
17
- self.description = "A set of command line tools for creating Jive Apps."
18
- self.summary = self.description
19
- self.version = "0.0.5"
20
- self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
17
+ self.version = "0.0.6"
21
18
  self.rubyforge_name = self.name # TODO this is default value
19
+ self.extra_rdoc_files << 'README.rdoc'
22
20
  self.extra_deps = [
23
- ['rest-client'],
24
- ['json_pure'],
25
- ['rubigen']
21
+ ['activesupport', '2.3.5'],
22
+ ['rest-client', '1.6.1'],
23
+ ['rubigen', '1.5.5']
26
24
  ]
27
25
  end
28
26
 
@@ -33,15 +31,6 @@ Dir['tasks/**/*.rake'].each { |t| load t }
33
31
  # remove_task :default
34
32
  # task :default => [:spec, :features]
35
33
 
36
-
37
-
38
- ### gems this gem depends on
39
- # rest_client
40
- # json_pure (or json)
41
- # rubigen
42
- # rspec (2.0.0.rc)
43
- # webmock 1.4.0 (for development/testing)
44
-
45
34
  ################
46
35
 
47
36
  require 'rake'
@@ -1,5 +1,5 @@
1
1
  module Jiveapps
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  WEBHOST = 'https://apphosting.jivesoftware.com'
4
4
  MODE = 'production'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rest_client'
3
- require 'json'
3
+ require 'active_support'
4
4
 
5
5
  class Jiveapps::Client
6
6
 
@@ -47,7 +47,7 @@ class Jiveapps::Client
47
47
  end
48
48
  rescue => e
49
49
  if e.response.body =~ /^\{/ # assume this is JSON if it starts with "{"
50
- errors = JSON.parse(e.response.body)
50
+ errors = ActiveSupport::JSON.decode(e.response.body)
51
51
  return {"errors" => errors}
52
52
  else
53
53
  nil
@@ -108,11 +108,11 @@ class Jiveapps::Client
108
108
  end
109
109
 
110
110
  def post(uri, object, extra_headers={}) # :nodoc:
111
- process(:post, uri, extra_headers, JSON.dump(object))
111
+ process(:post, uri, extra_headers, ActiveSupport::JSON.encode(object))
112
112
  end
113
113
 
114
114
  def put(uri, object, extra_headers={}) # :nodoc:
115
- process(:put, uri, extra_headers, JSON.dump(object))
115
+ process(:put, uri, extra_headers, ActiveSupport::JSON.encode(object))
116
116
  end
117
117
 
118
118
  def delete(uri, extra_headers={}) # :nodoc:
@@ -138,7 +138,7 @@ class Jiveapps::Client
138
138
  response_text = response.strip
139
139
 
140
140
  if response_text =~ /^\{|^\[/
141
- return JSON.parse(response_text)
141
+ return ActiveSupport::JSON.decode(response_text)
142
142
  else
143
143
  return response_text
144
144
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jiveapps
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Becker
@@ -15,35 +15,39 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-06 00:00:00 -08:00
18
+ date: 2010-12-17 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rest-client
22
+ name: activesupport
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - "="
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
29
+ hash: 9
30
30
  segments:
31
- - 0
32
- version: "0"
31
+ - 2
32
+ - 3
33
+ - 5
34
+ version: 2.3.5
33
35
  type: :runtime
34
36
  version_requirements: *id001
35
37
  - !ruby/object:Gem::Dependency
36
- name: json_pure
38
+ name: rest-client
37
39
  prerelease: false
38
40
  requirement: &id002 !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
41
- - - ">="
43
+ - - "="
42
44
  - !ruby/object:Gem::Version
43
- hash: 3
45
+ hash: 13
44
46
  segments:
45
- - 0
46
- version: "0"
47
+ - 1
48
+ - 6
49
+ - 1
50
+ version: 1.6.1
47
51
  type: :runtime
48
52
  version_requirements: *id002
49
53
  - !ruby/object:Gem::Dependency
@@ -52,47 +56,49 @@ dependencies:
52
56
  requirement: &id003 !ruby/object:Gem::Requirement
53
57
  none: false
54
58
  requirements:
55
- - - ">="
59
+ - - "="
56
60
  - !ruby/object:Gem::Version
57
- hash: 3
61
+ hash: 9
58
62
  segments:
59
- - 0
60
- version: "0"
63
+ - 1
64
+ - 5
65
+ - 5
66
+ version: 1.5.5
61
67
  type: :runtime
62
68
  version_requirements: *id003
63
69
  - !ruby/object:Gem::Dependency
64
- name: rubyforge
70
+ name: hoe
65
71
  prerelease: false
66
72
  requirement: &id004 !ruby/object:Gem::Requirement
67
73
  none: false
68
74
  requirements:
69
75
  - - ">="
70
76
  - !ruby/object:Gem::Version
71
- hash: 7
77
+ hash: 47
72
78
  segments:
73
79
  - 2
80
+ - 8
74
81
  - 0
75
- - 4
76
- version: 2.0.4
82
+ version: 2.8.0
77
83
  type: :development
78
84
  version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: hoe
81
- prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 19
88
- segments:
89
- - 2
90
- - 7
91
- - 0
92
- version: 2.7.0
93
- type: :development
94
- version_requirements: *id005
95
- description: A set of command line tools for creating Jive Apps.
85
+ description: |-
86
+ The "jiveapps" gem is a set of command line tools for building and hosting Jive App front-ends.
87
+
88
+ These tools are all about making app development as easy as possible. After you install the tools, it only takes a single command to:
89
+
90
+ Create a new app - a simple Hello World application.
91
+ Set up version control for your code using Git.
92
+ Host the app code online at Jive's AppHosting server.
93
+ Register the app on the Jive Apps Marketplace as an app "in development".
94
+ Install the app on your default app dashboard in the Jive Apps Sandbox.
95
+
96
+ After you install, use this simple workflow to make changes and see them reflected in the sandbox:
97
+
98
+ Make a change to the code on your local machine.
99
+ Commit the changes to your local Git repository.
100
+ Push the changes to the remote Jive Apps repository. This automatically updates the hosted copy on the Jive AppHosting server.
101
+ Refresh the app dashboard or canvas page on the Jive Apps Sandbox and see your changes.
96
102
  email:
97
103
  - becker.scott@gmail.com
98
104
  executables:
@@ -103,6 +109,7 @@ extra_rdoc_files:
103
109
  - History.txt
104
110
  - Manifest.txt
105
111
  - PostInstall.txt
112
+ - README.rdoc
106
113
  files:
107
114
  - .rspec
108
115
  - Gemfile
@@ -136,10 +143,10 @@ files:
136
143
  - spec/commands/keys_spec.rb
137
144
  - spec/spec_helper.rb
138
145
  has_rdoc: true
139
- homepage: http://github.com/#{github_username}/#{project_name}
146
+ homepage: https://github.com/jivesoftware/jiveapps-gem
140
147
  licenses: []
141
148
 
142
- post_install_message: PostInstall.txt
149
+ post_install_message:
143
150
  rdoc_options:
144
151
  - --main
145
152
  - README.rdoc
@@ -169,6 +176,6 @@ rubyforge_project: jiveapps
169
176
  rubygems_version: 1.3.7
170
177
  signing_key:
171
178
  specification_version: 3
172
- summary: A set of command line tools for creating Jive Apps.
179
+ summary: The "jiveapps" gem is a set of command line tools for building and hosting Jive App front-ends
173
180
  test_files: []
174
181