openskip-skip_embedded 0.0.19 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +8 -0
- data/Rakefile +1 -1
- data/bin/skip-gen +30 -0
- data/generators/skip_embedded/templates/app/views/layouts/skip_embedded.html.erb +1 -2
- data/lib/skip_embedded/op_fixation.rb +1 -1
- data/lib/skip_embedded.rb +1 -1
- data/script/skip-gen.sh +67 -0
- metadata +7 -5
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== 0.9.0 / 2009-04-02
|
2
|
+
* 0.9 release, used by SKIP Wiki-0.9
|
3
|
+
* fixup generator and Tutorial
|
4
|
+
|
5
|
+
== 0.0.20 / 2009-04-01
|
6
|
+
* generater layout / fix typo and remove unuse stylesheets
|
7
|
+
* add generation script `skip-gen`
|
8
|
+
|
1
9
|
== 0.0.19 / 2009-03-26
|
2
10
|
* add dependency to gettext
|
3
11
|
* add documentation, Tutorial.ja.rdoc
|
data/Rakefile
CHANGED
@@ -30,7 +30,7 @@ AUTHOR = "MOROHASHI Kyosuke"
|
|
30
30
|
EMAIL = "k-morohashi@esm.co.jp"
|
31
31
|
DESCRIPTION = "Utilities to collabolate SKIP, opensource buisiness SNS."
|
32
32
|
HOMEPATH = "http://github.com/openskip/skip_embedded/tree/master"
|
33
|
-
BIN_FILES = %w(
|
33
|
+
BIN_FILES = %w(skip-gen)
|
34
34
|
|
35
35
|
VERS = SkipEmbedded::Version
|
36
36
|
REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
|
data/bin/skip-gen
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# coding: utf-8
|
3
|
+
# vim:set ft=ruby:
|
4
|
+
require 'rubygems'
|
5
|
+
|
6
|
+
def check_dependency
|
7
|
+
missing = [
|
8
|
+
['rails', '2.1.2'],
|
9
|
+
['rspec', '1.2.2'],
|
10
|
+
['rspec-rails', '1.2.2'],
|
11
|
+
['moro-repim', '>=0.1.5'],
|
12
|
+
['moro-open_id_authentication', '>=1.0.0'],
|
13
|
+
].inject([]) do |miss, (name, version)|
|
14
|
+
begin
|
15
|
+
gem name, version
|
16
|
+
rescue LoadError => why
|
17
|
+
miss << why
|
18
|
+
end
|
19
|
+
miss
|
20
|
+
end
|
21
|
+
missing.empty? ? true : puts(missing)
|
22
|
+
end
|
23
|
+
|
24
|
+
def execute(path = "script/#{File.basename(__FILE__)}.sh")
|
25
|
+
script = File.expand_path("../" + path, File.dirname(__FILE__))
|
26
|
+
system("sh", "-x", script, ARGV.shift)
|
27
|
+
end
|
28
|
+
|
29
|
+
check_dependency && execute
|
30
|
+
|
@@ -7,8 +7,7 @@
|
|
7
7
|
<link rel="shortcut icon" href="<%= controller.request.relative_url_root %>/favicon.ico" />
|
8
8
|
|
9
9
|
<%= stylesheet_link_tag("skip_embedded") %>
|
10
|
-
<%= stylesheet_link_tag("sprites/
|
11
|
-
<%= stylesheet_link_tag("application") %>
|
10
|
+
<%= stylesheet_link_tag("sprites/sprites") %>
|
12
11
|
|
13
12
|
<%= yield :stylesheet %>
|
14
13
|
<%= javascript_include_tag(:jquery) %>
|
@@ -14,7 +14,7 @@ module SkipEmbedded
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.sso_openid_logout_url
|
17
|
-
URI.join(sso_openid_provider_url
|
17
|
+
URI.join(sso_openid_provider_url, "logout").to_s if sso_openid_provider_url
|
18
18
|
end
|
19
19
|
|
20
20
|
@@config = InitialSettings['skip_collaboration']['fixed_op']
|
data/lib/skip_embedded.rb
CHANGED
data/script/skip-gen.sh
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
#!/bin/sh -x
|
2
|
+
|
3
|
+
APP_NAME=${1}
|
4
|
+
rails _2.1.2_ ${APP_NAME}
|
5
|
+
|
6
|
+
cd ${APP_NAME}
|
7
|
+
|
8
|
+
cat <<GITIGNORE > .gitignore
|
9
|
+
config/database.yml
|
10
|
+
config/initial_settings.yml
|
11
|
+
log/*
|
12
|
+
db/*.sqlite3
|
13
|
+
db/schema.rb
|
14
|
+
tmp/*
|
15
|
+
GITIGNORE
|
16
|
+
|
17
|
+
ruby script/generate rspec
|
18
|
+
ruby script/generate cucumber
|
19
|
+
|
20
|
+
ruby script/generate relying_party Sessions name:string display_name:string
|
21
|
+
cat <<PATCH | patch -p2
|
22
|
+
diff --git a/skip-sample/app/controllers/application.rb b/skip-sample/app/controllers/application.rb
|
23
|
+
index 1d54efd..fbd1cf2 100644
|
24
|
+
--- a/skip-sample/app/controllers/application.rb
|
25
|
+
+++ b/skip-sample/app/controllers/application.rb
|
26
|
+
@@ -4,6 +4,8 @@
|
27
|
+
class ApplicationController < ActionController::Base
|
28
|
+
helper :all # include all helpers, all the time
|
29
|
+
include Repim::Application
|
30
|
+
+ layout "skip_embedded"
|
31
|
+
+ init_gettext("skip-todo") if defined?(GetText)
|
32
|
+
|
33
|
+
# See ActionController::RequestForgeryProtection for details
|
34
|
+
# Uncomment the :secret if you're not using the cookie session store
|
35
|
+
diff --git a/skip-sample/app/controllers/sessions_controller.rb b/skip-sample/app/controllers/sessions_controller.rb
|
36
|
+
index e7ebe5a..a031e88 100644
|
37
|
+
--- a/skip-sample/app/controllers/sessions_controller.rb
|
38
|
+
+++ b/skip-sample/app/controllers/sessions_controller.rb
|
39
|
+
@@ -1,4 +1,7 @@
|
40
|
+
class SessionsController < ApplicationController
|
41
|
+
include OpenIdAuthentication
|
42
|
+
include Repim::RelyingParty
|
43
|
+
+
|
44
|
+
+ use_attribute_exchange(["http://axschema.org", "http://schema.openid.net"],
|
45
|
+
+ :display_name => "/namePerson", :name => "/namePerson/friendly" )
|
46
|
+
end
|
47
|
+
diff --git a/skip-sample/config/environment.rb b/skip-sample/config/environment.rb
|
48
|
+
index a0fb06a..bda6d11 100644
|
49
|
+
--- a/skip-sample/config/environment.rb
|
50
|
+
+++ b/skip-sample/config/environment.rb
|
51
|
+
@@ -25,6 +25,8 @@ Rails::Initializer.run do |config|
|
52
|
+
# config.gem "bj"
|
53
|
+
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
|
54
|
+
# config.gem "aws-s3", :lib => "aws/s3"
|
55
|
+
+ config.gem 'moro-repim', :lib => 'repim', :source => 'http://gems.github.com/'
|
56
|
+
+ config.gem 'openskip-skip_embedded', :lib => 'skip_embedded', :source => 'http://gems.github.com/'
|
57
|
+
|
58
|
+
# Only load the plugins named here, in the order given. By default, all plugins
|
59
|
+
# in vendor/plugins are loaded in alphabetical order.
|
60
|
+
PATCH
|
61
|
+
|
62
|
+
ruby script/generate skip_embedded
|
63
|
+
rake skip_embedded:thirdparty
|
64
|
+
rm app/views/layouts/sessions.html.erb public/index.html
|
65
|
+
|
66
|
+
cd -
|
67
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openskip-skip_embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MOROHASHI Kyosuke
|
@@ -9,8 +9,8 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
13
|
-
default_executable:
|
12
|
+
date: 2009-04-02 00:00:00 -07:00
|
13
|
+
default_executable: skip-gen
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: moro-repim
|
@@ -24,8 +24,8 @@ dependencies:
|
|
24
24
|
version:
|
25
25
|
description: Utilities to collabolate SKIP, opensource buisiness SNS.
|
26
26
|
email: k-morohashi@esm.co.jp
|
27
|
-
executables:
|
28
|
-
|
27
|
+
executables:
|
28
|
+
- skip-gen
|
29
29
|
extensions: []
|
30
30
|
|
31
31
|
extra_rdoc_files:
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- README.rdoc
|
36
36
|
- ChangeLog
|
37
37
|
- Rakefile
|
38
|
+
- bin/skip-gen
|
38
39
|
- lib/skip_embedded
|
39
40
|
- lib/skip_embedded/fulltext_search_cache
|
40
41
|
- lib/skip_embedded/fulltext_search_cache/builder_base.rb
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- generators/skip_embedded/templates/public/stylesheets/sprites
|
82
83
|
- generators/skip_embedded/templates/public/stylesheets/sprites/sprites.css
|
83
84
|
- generators/skip_embedded/templates/public/stylesheets/sprites/sprites.png
|
85
|
+
- script/skip-gen.sh
|
84
86
|
- spec/skip_embedded/fulltext_search_cache/builder_base_spec.rb
|
85
87
|
- spec/skip_embedded/fulltext_search_cache/mediator_spec.rb
|
86
88
|
- spec/skip_embedded/fulltext_search_cache/partial_loader_spec.rb
|