jiveapps 1.0.2 → 1.0.3
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/History.txt +11 -0
- data/app_generators/create/templates/app.xml +8 -8
- data/app_generators/create/templates/hello.html +4 -4
- data/autotest/discover.rb +0 -1
- data/lib/jiveapps/client.rb +6 -16
- data/lib/jiveapps/commands/app.rb +7 -1
- data/lib/jiveapps/version.rb +1 -1
- metadata +5 -5
data/History.txt
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
=== 1.0.3
|
|
2
|
+
* Enhancements
|
|
3
|
+
* change icon and screenshot hrefs to be relative urls
|
|
4
|
+
* change screenshot rel attributes to be numbered 1-5
|
|
5
|
+
* Bug fix
|
|
6
|
+
* fix issue where new app is deleted if using older version of Git (<1.7) that doesn't support "git branch --set-upstream"
|
|
7
|
+
* fix invalid reference to "images/j-icon-jaf-48.png", changed to "images/icon48.png"
|
|
8
|
+
* remove hack to double escape URL parameters in production to work around old nginx/passenger bug
|
|
9
|
+
* escape remaining url parameters that were not yet being escaped
|
|
10
|
+
* removed RCov.pattern= since it no longer has any functionality
|
|
11
|
+
|
|
1
12
|
=== 1.0.2 2011-04-29
|
|
2
13
|
* Minor Enhancement
|
|
3
14
|
* update app template with new syntax for screenhots in <Link> tags. remove 'screenshot' and 'thumbnail' attributes from <ModulePrefs>
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
<Require feature="views" />
|
|
16
16
|
|
|
17
17
|
<!-- Icons: 3 sizes, 16x16, 48x48, 128x128 -->
|
|
18
|
-
<Link rel="Icon" href="
|
|
19
|
-
<Link rel="MediumIcon" href="
|
|
20
|
-
<Link rel="LargeIcon" href="
|
|
18
|
+
<Link rel="Icon" href="images/icon16.png" />
|
|
19
|
+
<Link rel="MediumIcon" href="images/icon48.png" />
|
|
20
|
+
<Link rel="LargeIcon" href="images/icon128.png" />
|
|
21
21
|
|
|
22
22
|
<!-- Screenshots: 600w x 400h, should include at least 1 and up to 5 -->
|
|
23
23
|
<!--
|
|
24
|
-
<Link rel="
|
|
25
|
-
<Link rel="
|
|
26
|
-
<Link rel="
|
|
27
|
-
<Link rel="
|
|
28
|
-
<Link rel="
|
|
24
|
+
<Link rel="Screenshot1" href="images/screenshot1.png" />
|
|
25
|
+
<Link rel="Screenshot2" href="images/screenshot2.png" />
|
|
26
|
+
<Link rel="Screenshot3" href="images/screenshot3.png" />
|
|
27
|
+
<Link rel="Screenshot4" href="images/screenshot4.png" />
|
|
28
|
+
<Link rel="Screenshot5" href="images/screenshot5.png" />
|
|
29
29
|
-->
|
|
30
30
|
|
|
31
31
|
<!-- OAuth Services: https://developers.jivesoftware.com/community/docs/DOC-1161 -->
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
h3 {background-color:#e5e5e5;padding:3px;font-size:105%;}
|
|
30
30
|
h5 {font-size:105%;margin:0;}
|
|
31
31
|
#devlinks h3 {margin:2px;}
|
|
32
|
-
#devlinks div.community {padding:0;margin:0;background: url('images/
|
|
33
|
-
#devlinks div.documentation {padding:0;margin:0;background: url('images/
|
|
34
|
-
#devlinks div.login {padding:0;margin:0;background: url('images/
|
|
35
|
-
#devlinks div.market {padding:0;margin:0;background: url('images/
|
|
32
|
+
#devlinks div.community {padding:0;margin:0;background: url('images/icon48.png') no-repeat; background-position: 10px 2px ; height:70px;}
|
|
33
|
+
#devlinks div.documentation {padding:0;margin:0;background: url('images/icon48.png') no-repeat; background-position: 10px 2px ; height:70px;}
|
|
34
|
+
#devlinks div.login {padding:0;margin:0;background: url('images/icon48.png') no-repeat; background-position: 10px 2px ; height:70px;}
|
|
35
|
+
#devlinks div.market {padding:0;margin:0;background: url('images/icon48.png') no-repeat; background-position: 10px 2px ; height:70px;}
|
|
36
36
|
#devlinks div p {margin:10px 0px 0px 80px;}
|
|
37
37
|
#devlinks h3 a,a:hover {text-decoration:none;}
|
|
38
38
|
#devlinks ul {margin:5px 0px 0px 50px;}
|
data/autotest/discover.rb
CHANGED
data/lib/jiveapps/client.rb
CHANGED
|
@@ -104,7 +104,7 @@ class Jiveapps::Client
|
|
|
104
104
|
### OAuth Services
|
|
105
105
|
|
|
106
106
|
def list_oauth_services(app_name)
|
|
107
|
-
services = get("/apps/#{app_name}/oauth_services")
|
|
107
|
+
services = get("/apps/#{escape(app_name)}/oauth_services")
|
|
108
108
|
|
|
109
109
|
if services.class == Array
|
|
110
110
|
services.map { |item| item['oauth_service'] }
|
|
@@ -114,18 +114,18 @@ class Jiveapps::Client
|
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
def add_oauth_service(app_name, name, key, secret)
|
|
117
|
-
post("/apps/#{app_name}/oauth_services", {:oauth_service => {:name => name, :key => key, :secret => secret}})
|
|
117
|
+
post("/apps/#{escape(app_name)}/oauth_services", {:oauth_service => {:name => name, :key => key, :secret => secret}})
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
def remove_oauth_service(app_name, name)
|
|
121
|
-
delete("/apps/#{app_name}/oauth_services/#{name}")
|
|
121
|
+
delete("/apps/#{escape(app_name)}/oauth_services/#{escape(name)}")
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
### Collaborators
|
|
125
125
|
|
|
126
126
|
# Get a list of collaborators on the app, returns an array of hashes each with :email
|
|
127
127
|
def list_collaborators(app_name)
|
|
128
|
-
collaborators = get("/apps/#{app_name}/collaborators")
|
|
128
|
+
collaborators = get("/apps/#{escape(app_name)}/collaborators")
|
|
129
129
|
|
|
130
130
|
if collaborators.class == Array
|
|
131
131
|
collaborators.map { |item| {:username => item['collaborator']['user']['username']} }
|
|
@@ -136,12 +136,12 @@ class Jiveapps::Client
|
|
|
136
136
|
|
|
137
137
|
# Invite a person by username to collaborate on the app.
|
|
138
138
|
def add_collaborator(app_name, username)
|
|
139
|
-
post("/apps/#{app_name}/collaborators", {:collaborator => {:username => username}})
|
|
139
|
+
post("/apps/#{escape(app_name)}/collaborators", {:collaborator => {:username => username}})
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
# Remove a collaborator.
|
|
143
143
|
def remove_collaborator(app_name, username)
|
|
144
|
-
delete("/apps/#{app_name}/collaborators/#{escape(username)}").to_s
|
|
144
|
+
delete("/apps/#{escape(app_name)}/collaborators/#{escape(username)}").to_s
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
### General
|
|
@@ -207,16 +207,6 @@ class Jiveapps::Client
|
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
def escape(value) # :nodoc:
|
|
210
|
-
### Ugly hack - nginx/passenger unescapes the name before it gets
|
|
211
|
-
### to rails, causing routes to fail. double encode in production
|
|
212
|
-
if Jiveapps::MODE == 'production'
|
|
213
|
-
_escape(_escape(value))
|
|
214
|
-
else
|
|
215
|
-
_escape(value)
|
|
216
|
-
end
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def _escape(value) # :nodoc:
|
|
220
210
|
escaped = URI.escape(value.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
|
|
221
211
|
escaped.gsub('.', '%2E') # not covered by the previous URI.escape
|
|
222
212
|
end
|
|
@@ -111,7 +111,13 @@ module Jiveapps::Command
|
|
|
111
111
|
run('git commit -m "initial commit"')
|
|
112
112
|
run("git remote add jiveapps #{current_app['git_url']}")
|
|
113
113
|
run("git push jiveapps master")
|
|
114
|
-
|
|
114
|
+
|
|
115
|
+
# configure master branch to track to remote branch.
|
|
116
|
+
# was using "git branch --set-upstream master jiveapps/master"
|
|
117
|
+
# but it is only supported in git 1.7 and higher
|
|
118
|
+
run("git config branch.master.remote jiveapps")
|
|
119
|
+
run("git config branch.master.merge refs/heads/master")
|
|
120
|
+
run("git config push.default tracking")
|
|
115
121
|
end
|
|
116
122
|
|
|
117
123
|
if $? == 0
|
data/lib/jiveapps/version.rb
CHANGED
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:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 1.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Scott Becker
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-05-20 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: activesupport
|
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
235
235
|
requirements: []
|
|
236
236
|
|
|
237
237
|
rubyforge_project:
|
|
238
|
-
rubygems_version: 1.
|
|
238
|
+
rubygems_version: 1.8.2
|
|
239
239
|
signing_key:
|
|
240
240
|
specification_version: 3
|
|
241
241
|
summary: The "jiveapps" gem is a set of command line tools for building and hosting Jive App front-ends.
|