openskip-skip_embedded 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog
CHANGED
data/lib/skip_embedded.rb
CHANGED
@@ -44,12 +44,12 @@ module SkipEmbedded
|
|
44
44
|
private
|
45
45
|
def request_api_via_oauth(method, url, data, token, headers = {}, parse_json=true)
|
46
46
|
url = url.is_a?(URI) ? url : URI(url)
|
47
|
-
req =
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
req = case method
|
48
|
+
when :post then Net::HTTP::Post.new(url.path)
|
49
|
+
when :put then Net::HTTP::Put.new(url.path)
|
50
|
+
when :delete then Net::HTTP::Delete.new(url.path)
|
51
|
+
else Net::HTTP::Get.new(url.request_uri)
|
52
|
+
end
|
53
53
|
req["Content-Type"] = "application/json"
|
54
54
|
headers.each{|k,v| req[k] = v }
|
55
55
|
|
@@ -70,6 +70,7 @@ module SkipEmbedded
|
|
70
70
|
def setup_https(uri)
|
71
71
|
returning Net::HTTP.new(uri.host, uri.port) do |http|
|
72
72
|
if uri.scheme == "https"
|
73
|
+
http.use_ssl = true
|
73
74
|
if @ca_file
|
74
75
|
http.ca_file = @ca_file
|
75
76
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
@@ -121,19 +121,6 @@ module SkipEmbedded
|
|
121
121
|
WebServiceUtil.get_json(@url).should be_nil
|
122
122
|
end
|
123
123
|
end
|
124
|
-
describe "ホストの無いURLが渡された場合" do
|
125
|
-
before do
|
126
|
-
@url = "/services/user_info?user_code=user"
|
127
|
-
end
|
128
|
-
it "nilが返ること" do
|
129
|
-
@logger.stub!(:error)
|
130
|
-
WebServiceUtil.get_json(@url).should be_nil
|
131
|
-
end
|
132
|
-
it "ログが出力されること" do
|
133
|
-
@logger.should_receive(:error).with(/[WebServiceUtil Error] .*/)
|
134
|
-
WebServiceUtil.get_json(@url).should be_nil
|
135
|
-
end
|
136
|
-
end
|
137
124
|
describe "レスポンスが404の場合" do
|
138
125
|
before do
|
139
126
|
@url = "/services/user_info?user_code=user"
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openskip-skip_embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MAEDA Naoki
|
8
8
|
- MOROHASHI Kyosuke
|
9
|
+
- MATSUMURA Akihiro
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
13
|
|
13
|
-
date: 2009-
|
14
|
+
date: 2009-06-04 00:00:00 -07:00
|
14
15
|
default_executable: skip-gen
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
@@ -57,84 +58,84 @@ files:
|
|
57
58
|
- ChangeLog
|
58
59
|
- Rakefile
|
59
60
|
- bin/skip-gen
|
61
|
+
- lib/skip_embedded.rb
|
60
62
|
- lib/skip_embedded
|
61
|
-
- lib/skip_embedded/fulltext_search_cache
|
62
|
-
- lib/skip_embedded/fulltext_search_cache/builder_base.rb
|
63
|
-
- lib/skip_embedded/fulltext_search_cache/mediator.rb
|
64
|
-
- lib/skip_embedded/fulltext_search_cache/partial_loader.rb
|
65
|
-
- lib/skip_embedded/fulltext_search_cache.rb
|
66
|
-
- lib/skip_embedded/helpers
|
67
|
-
- lib/skip_embedded/helpers/sprite.rb
|
68
|
-
- lib/skip_embedded/helpers/ui.rb
|
69
|
-
- lib/skip_embedded/helpers.rb
|
70
63
|
- lib/skip_embedded/initial_settings.rb
|
71
|
-
- lib/skip_embedded/op_fixation.rb
|
72
64
|
- lib/skip_embedded/open_id_sso
|
73
|
-
- lib/skip_embedded/open_id_sso/authentication.rb
|
74
65
|
- lib/skip_embedded/open_id_sso/session_management.rb
|
75
|
-
- lib/skip_embedded/
|
76
|
-
- lib/skip_embedded/
|
77
|
-
- lib/skip_embedded/rp_service/http_connection.rb
|
78
|
-
- lib/skip_embedded/rp_service/oauth_proxy.rb
|
79
|
-
- lib/skip_embedded/rp_service/util.rb
|
66
|
+
- lib/skip_embedded/open_id_sso/authentication.rb
|
67
|
+
- lib/skip_embedded/op_fixation.rb
|
80
68
|
- lib/skip_embedded/types
|
81
69
|
- lib/skip_embedded/types/content_type.rb
|
70
|
+
- lib/skip_embedded/helpers
|
71
|
+
- lib/skip_embedded/helpers/sprite.rb
|
72
|
+
- lib/skip_embedded/helpers/ui.rb
|
82
73
|
- lib/skip_embedded/validations_file.rb
|
74
|
+
- lib/skip_embedded/web_service_util.rb
|
75
|
+
- lib/skip_embedded/fulltext_search_cache.rb
|
83
76
|
- lib/skip_embedded/web_service_util
|
84
|
-
- lib/skip_embedded/web_service_util/client.rb
|
85
77
|
- lib/skip_embedded/web_service_util/server.rb
|
86
|
-
- lib/skip_embedded/web_service_util.rb
|
87
|
-
- lib/skip_embedded.rb
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
- generators/skip_embedded/templates/app/views/shared/_skip_full_text_search_form.html.erb
|
98
|
-
- generators/skip_embedded/templates/config
|
99
|
-
- generators/skip_embedded/templates/config/initial_settings.yml
|
100
|
-
- generators/skip_embedded/templates/lib
|
101
|
-
- generators/skip_embedded/templates/lib/tasks
|
102
|
-
- generators/skip_embedded/templates/lib/tasks/skip_embedded.rake
|
103
|
-
- generators/skip_embedded/templates/public
|
104
|
-
- generators/skip_embedded/templates/public/blank.html
|
105
|
-
- generators/skip_embedded/templates/public/javascripts
|
106
|
-
- generators/skip_embedded/templates/public/javascripts/dropdown_navigation.js
|
107
|
-
- generators/skip_embedded/templates/public/javascripts/flash_message.js
|
108
|
-
- generators/skip_embedded/templates/public/javascripts/labeled_text_field.js
|
109
|
-
- generators/skip_embedded/templates/public/javascripts/skip
|
110
|
-
- generators/skip_embedded/templates/public/javascripts/skip/skip_fckeditor_config.js
|
78
|
+
- lib/skip_embedded/web_service_util/client.rb
|
79
|
+
- lib/skip_embedded/helpers.rb
|
80
|
+
- lib/skip_embedded/fulltext_search_cache
|
81
|
+
- lib/skip_embedded/fulltext_search_cache/partial_loader.rb
|
82
|
+
- lib/skip_embedded/fulltext_search_cache/builder_base.rb
|
83
|
+
- lib/skip_embedded/fulltext_search_cache/mediator.rb
|
84
|
+
- lib/skip_embedded/rp_service
|
85
|
+
- lib/skip_embedded/rp_service/oauth_proxy.rb
|
86
|
+
- lib/skip_embedded/rp_service/http_connection.rb
|
87
|
+
- lib/skip_embedded/rp_service/util.rb
|
88
|
+
- lib/skip_embedded/rp_service/client.rb
|
111
89
|
- generators/skip_embedded_stylesheets
|
112
|
-
- generators/skip_embedded_stylesheets/skip_embedded_stylesheets_generator.rb
|
113
90
|
- generators/skip_embedded_stylesheets/templates
|
114
91
|
- generators/skip_embedded_stylesheets/templates/public
|
115
92
|
- generators/skip_embedded_stylesheets/templates/public/stylesheets
|
116
|
-
- generators/skip_embedded_stylesheets/templates/public/stylesheets/
|
93
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/skip_base.css
|
94
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sprites
|
95
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sprites/sprites.png
|
96
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sprites/sprites.css
|
117
97
|
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass
|
118
|
-
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/editor_area.sass
|
119
98
|
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/skip_base.sass
|
120
|
-
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/skip_embedded.sass
|
121
|
-
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/skip_footer.sass
|
122
99
|
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/skip_header.sass
|
123
|
-
- generators/skip_embedded_stylesheets/templates/public/stylesheets/
|
124
|
-
- generators/skip_embedded_stylesheets/templates/public/stylesheets/
|
100
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/editor_area.sass
|
101
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/skip_footer.sass
|
102
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/sass/skip_embedded.sass
|
125
103
|
- generators/skip_embedded_stylesheets/templates/public/stylesheets/skip_footer.css
|
104
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/skip_embedded.css
|
126
105
|
- generators/skip_embedded_stylesheets/templates/public/stylesheets/skip_header.css
|
127
|
-
- generators/skip_embedded_stylesheets/templates/public/stylesheets/
|
128
|
-
- generators/skip_embedded_stylesheets/
|
129
|
-
- generators/
|
106
|
+
- generators/skip_embedded_stylesheets/templates/public/stylesheets/editor_area.css
|
107
|
+
- generators/skip_embedded_stylesheets/skip_embedded_stylesheets_generator.rb
|
108
|
+
- generators/skip_embedded
|
109
|
+
- generators/skip_embedded/templates
|
110
|
+
- generators/skip_embedded/templates/public
|
111
|
+
- generators/skip_embedded/templates/public/blank.html
|
112
|
+
- generators/skip_embedded/templates/public/javascripts
|
113
|
+
- generators/skip_embedded/templates/public/javascripts/skip
|
114
|
+
- generators/skip_embedded/templates/public/javascripts/skip/skip_fckeditor_config.js
|
115
|
+
- generators/skip_embedded/templates/public/javascripts/dropdown_navigation.js
|
116
|
+
- generators/skip_embedded/templates/public/javascripts/flash_message.js
|
117
|
+
- generators/skip_embedded/templates/public/javascripts/labeled_text_field.js
|
118
|
+
- generators/skip_embedded/templates/app
|
119
|
+
- generators/skip_embedded/templates/app/views
|
120
|
+
- generators/skip_embedded/templates/app/views/shared
|
121
|
+
- generators/skip_embedded/templates/app/views/shared/_skip_full_text_search_form.html.erb
|
122
|
+
- generators/skip_embedded/templates/app/views/shared/_flash_message.html.erb
|
123
|
+
- generators/skip_embedded/templates/app/views/layouts
|
124
|
+
- generators/skip_embedded/templates/app/views/layouts/skip_embedded.html.erb
|
125
|
+
- generators/skip_embedded/templates/lib
|
126
|
+
- generators/skip_embedded/templates/lib/tasks
|
127
|
+
- generators/skip_embedded/templates/lib/tasks/skip_embedded.rake
|
128
|
+
- generators/skip_embedded/templates/config
|
129
|
+
- generators/skip_embedded/templates/config/initial_settings.yml
|
130
|
+
- generators/skip_embedded/skip_embedded_generator.rb
|
130
131
|
- script/skip-gen.sh
|
131
|
-
- spec/
|
132
|
-
- spec/skip_embedded/fulltext_search_cache/mediator_spec.rb
|
133
|
-
- spec/skip_embedded/fulltext_search_cache/partial_loader_spec.rb
|
132
|
+
- spec/spec_helper.rb
|
134
133
|
- spec/skip_embedded/initial_setting_spec.rb
|
135
|
-
- spec/skip_embedded/op_fixation_spec.rb
|
136
134
|
- spec/skip_embedded/web_service_util_spec.rb
|
137
|
-
- spec/
|
135
|
+
- spec/skip_embedded/op_fixation_spec.rb
|
136
|
+
- spec/skip_embedded/fulltext_search_cache/mediator_spec.rb
|
137
|
+
- spec/skip_embedded/fulltext_search_cache/partial_loader_spec.rb
|
138
|
+
- spec/skip_embedded/fulltext_search_cache/builder_base_spec.rb
|
138
139
|
- rails/init.rb
|
139
140
|
has_rdoc: false
|
140
141
|
homepage: http://github.com/openskip/skip_embedded/tree/master
|
@@ -174,9 +175,9 @@ signing_key:
|
|
174
175
|
specification_version: 3
|
175
176
|
summary: Utilities to collabolate SKIP, opensource buisiness SNS.
|
176
177
|
test_files:
|
177
|
-
- spec/skip_embedded/fulltext_search_cache/builder_base_spec.rb
|
178
|
-
- spec/skip_embedded/fulltext_search_cache/mediator_spec.rb
|
179
|
-
- spec/skip_embedded/fulltext_search_cache/partial_loader_spec.rb
|
180
178
|
- spec/skip_embedded/initial_setting_spec.rb
|
181
|
-
- spec/skip_embedded/op_fixation_spec.rb
|
182
179
|
- spec/skip_embedded/web_service_util_spec.rb
|
180
|
+
- spec/skip_embedded/op_fixation_spec.rb
|
181
|
+
- spec/skip_embedded/fulltext_search_cache/mediator_spec.rb
|
182
|
+
- spec/skip_embedded/fulltext_search_cache/partial_loader_spec.rb
|
183
|
+
- spec/skip_embedded/fulltext_search_cache/builder_base_spec.rb
|