spigit_conf 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/lib/spigit_conf/core/ext/class.rb +4 -3
- data/lib/spigit_conf/engage.rb +68 -68
- data/lib/spigit_conf/version.rb +1 -1
- data/spigit_conf.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e45f056e91cfca0834bc33118bde6a37f065752
|
4
|
+
data.tar.gz: 898a9ad0b1a0be65d0e0dd06ece874b55329a125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e3386ddb368b09a84c3210b4086bbc98a3980111357371bfd9252bf74c9f112f5005a304a2be5ed4d9737183700bd6f3b5099ec698704d52c1eca4226168d5e
|
7
|
+
data.tar.gz: 8c1f078ff214a12841d519c4da58d8cb6aff044aefb997d5c26e5fe50998680bb617e0537222c8e44604347d437412392afe824e709de141b9c907ffb86b6aa7
|
@@ -1,7 +1,9 @@
|
|
1
|
+
require 'active_support/inflector'
|
2
|
+
|
1
3
|
class Class
|
2
|
-
def spigit_attr(java_key, *
|
4
|
+
def spigit_attr(java_key, *aliases)
|
3
5
|
java_key = java_key.to_s
|
4
|
-
name
|
6
|
+
name = java_key.underscore
|
5
7
|
|
6
8
|
self.class_eval(%Q{
|
7
9
|
def #{name}
|
@@ -24,7 +26,6 @@ class Class
|
|
24
26
|
end
|
25
27
|
})
|
26
28
|
|
27
|
-
aliases = methods[1..-1]
|
28
29
|
aliases.each do |x|
|
29
30
|
x = x.to_s
|
30
31
|
|
data/lib/spigit_conf/engage.rb
CHANGED
@@ -5,76 +5,76 @@ require 'spigit_conf/core/ext/class'
|
|
5
5
|
|
6
6
|
module SpigitConf
|
7
7
|
class Engage
|
8
|
-
spigit_attr :ACTIVITY_FEED_THROTTLE
|
9
|
-
spigit_attr :ACTIVITY_STREAM_SCHEMA
|
10
|
-
spigit_attr :ACTIVITY_STREAM_SERVER_URL
|
11
|
-
spigit_attr :BASE_DOMAIN
|
12
|
-
spigit_attr :BROKER_HOST
|
13
|
-
spigit_attr :BROKER_PORT
|
14
|
-
spigit_attr :COMPUTE_CATEGORY_REPUTATION
|
15
|
-
spigit_attr :COOKIE_DOMAIN
|
16
|
-
spigit_attr :DB_NAMES
|
17
|
-
spigit_attr :DB_NAME_USER
|
18
|
-
spigit_attr :DRAG_AND_DROP_ENABLED
|
19
|
-
spigit_attr :FORM_ID_CHECKED
|
20
|
-
spigit_attr :GRID_BASED_THEME_ONLY
|
21
|
-
spigit_attr :IDEAS_RECOMMENTORS
|
22
|
-
spigit_attr :IDEAS_RECOMMENTORS_WEIGHTS
|
23
|
-
spigit_attr :JASPERSERVER_URL
|
24
|
-
spigit_attr :JSP_SECTOR_THREADS_HOME
|
25
|
-
spigit_attr :LABEL_EDASHBOARD
|
26
|
-
spigit_attr :LABEL_LEADERBOARD
|
27
|
-
spigit_attr :MAX_IDLE_BROWSER_PERIOD
|
28
|
-
spigit_attr :PARAM_INFO_MESSAGE
|
29
|
-
spigit_attr :RECOMMENDED_IDEAS_WINDOW
|
30
|
-
spigit_attr :RESOURCE_SERVER_URL
|
31
|
-
spigit_attr :SEARCH_HOST
|
32
|
-
spigit_attr :SEARCH_SERVER_PORT
|
33
|
-
spigit_attr :SECURITY_LEVEL
|
34
|
-
spigit_attr :SITEMAP_FILE_PATH
|
35
|
-
spigit_attr :SITE_ID
|
36
|
-
spigit_attr :SPIGIT_FROM_DISPLAY_NAME
|
37
|
-
spigit_attr :SSO_REDIRECT_LOGIN_URL
|
38
|
-
spigit_attr :SSO_REDIRECT_REGISTER_URL
|
39
|
-
spigit_attr :TM_CONTENT_FIELD
|
40
|
-
spigit_attr :TM_NUMBER_TOPIC
|
41
|
-
spigit_attr :URI_ADDUSER_PAGE
|
42
|
-
spigit_attr :URI_AGGREGATED_BLOGS_PAGE
|
43
|
-
spigit_attr :URI_BLOG_MODERATE_PAGE
|
44
|
-
spigit_attr :URI_COMMUNITY
|
45
|
-
spigit_attr :URI_DASHBOARD
|
46
|
-
spigit_attr :URI_DASHBOARD
|
47
|
-
spigit_attr :URI_EDITPROFILE
|
48
|
-
spigit_attr :URI_HOMEPAGE
|
49
|
-
spigit_attr :URI_LEADERBOARD
|
50
|
-
spigit_attr :URI_MARKET_HOME
|
51
|
-
spigit_attr :URI_MOST_ACTIVE_MARKETS
|
52
|
-
spigit_attr :URI_PAGE_POSTBLOGCOMMENT
|
53
|
-
spigit_attr :URI_PAGE_POSTBLOGENTRY
|
54
|
-
spigit_attr :URI_PENDING_APPROVALS_ACTION
|
55
|
-
spigit_attr :URI_POSTIDEA
|
56
|
-
spigit_attr :URI_POSTSECTOR
|
57
|
-
spigit_attr :URI_POST_MARKET_PAGE
|
58
|
-
spigit_attr :URI_PREDICATION_MARKET_HOME
|
59
|
-
spigit_attr :URI_RECENT_MARKETS
|
60
|
-
spigit_attr :URI_REPORTS_HOME
|
61
|
-
spigit_attr :URI_RESETUSER
|
62
|
-
spigit_attr :URI_SEARCH
|
63
|
-
spigit_attr :URI_STORE
|
64
|
-
spigit_attr :URI_STORE_HOME_PAGE
|
65
|
-
spigit_attr :URI_TAG_SEARCH
|
66
|
-
spigit_attr :URI_TRADE_SHARES_PAGE
|
67
|
-
spigit_attr :URI_VIEWBLOG
|
68
|
-
spigit_attr :URI_VIEWBLOGENTRY
|
69
|
-
spigit_attr :URI_VIEWIDEA
|
70
|
-
spigit_attr :URI_VIEWIDEA_VERSION
|
71
|
-
spigit_attr :URI_VIEWPROFILE
|
72
|
-
spigit_attr :URI_VIEWSECTOR
|
73
|
-
spigit_attr :URI_VIEW_ALL_BLOGS_PAGE
|
74
|
-
spigit_attr :URI_VIEW_BLOGCOMMENT
|
8
|
+
spigit_attr :ACTIVITY_FEED_THROTTLE
|
9
|
+
spigit_attr :ACTIVITY_STREAM_SCHEMA
|
10
|
+
spigit_attr :ACTIVITY_STREAM_SERVER_URL
|
11
|
+
spigit_attr :BASE_DOMAIN
|
12
|
+
spigit_attr :BROKER_HOST
|
13
|
+
spigit_attr :BROKER_PORT
|
14
|
+
spigit_attr :COMPUTE_CATEGORY_REPUTATION
|
15
|
+
spigit_attr :COOKIE_DOMAIN
|
16
|
+
spigit_attr :DB_NAMES
|
17
|
+
spigit_attr :DB_NAME_USER
|
18
|
+
spigit_attr :DRAG_AND_DROP_ENABLED
|
19
|
+
spigit_attr :FORM_ID_CHECKED
|
20
|
+
spigit_attr :GRID_BASED_THEME_ONLY
|
21
|
+
spigit_attr :IDEAS_RECOMMENTORS
|
22
|
+
spigit_attr :IDEAS_RECOMMENTORS_WEIGHTS
|
23
|
+
spigit_attr :JASPERSERVER_URL
|
24
|
+
spigit_attr :JSP_SECTOR_THREADS_HOME
|
25
|
+
spigit_attr :LABEL_EDASHBOARD
|
26
|
+
spigit_attr :LABEL_LEADERBOARD
|
27
|
+
spigit_attr :MAX_IDLE_BROWSER_PERIOD
|
28
|
+
spigit_attr :PARAM_INFO_MESSAGE
|
29
|
+
spigit_attr :RECOMMENDED_IDEAS_WINDOW
|
30
|
+
spigit_attr :RESOURCE_SERVER_URL
|
31
|
+
spigit_attr :SEARCH_HOST
|
32
|
+
spigit_attr :SEARCH_SERVER_PORT
|
33
|
+
spigit_attr :SECURITY_LEVEL
|
34
|
+
spigit_attr :SITEMAP_FILE_PATH
|
35
|
+
spigit_attr :SITE_ID
|
36
|
+
spigit_attr :SPIGIT_FROM_DISPLAY_NAME
|
37
|
+
spigit_attr :SSO_REDIRECT_LOGIN_URL
|
38
|
+
spigit_attr :SSO_REDIRECT_REGISTER_URL
|
39
|
+
spigit_attr :TM_CONTENT_FIELD
|
40
|
+
spigit_attr :TM_NUMBER_TOPIC
|
41
|
+
spigit_attr :URI_ADDUSER_PAGE
|
42
|
+
spigit_attr :URI_AGGREGATED_BLOGS_PAGE
|
43
|
+
spigit_attr :URI_BLOG_MODERATE_PAGE
|
44
|
+
spigit_attr :URI_COMMUNITY
|
45
|
+
spigit_attr :URI_DASHBOARD
|
46
|
+
spigit_attr :URI_DASHBOARD
|
47
|
+
spigit_attr :URI_EDITPROFILE
|
48
|
+
spigit_attr :URI_HOMEPAGE
|
49
|
+
spigit_attr :URI_LEADERBOARD
|
50
|
+
spigit_attr :URI_MARKET_HOME
|
51
|
+
spigit_attr :URI_MOST_ACTIVE_MARKETS
|
52
|
+
spigit_attr :URI_PAGE_POSTBLOGCOMMENT
|
53
|
+
spigit_attr :URI_PAGE_POSTBLOGENTRY
|
54
|
+
spigit_attr :URI_PENDING_APPROVALS_ACTION
|
55
|
+
spigit_attr :URI_POSTIDEA
|
56
|
+
spigit_attr :URI_POSTSECTOR
|
57
|
+
spigit_attr :URI_POST_MARKET_PAGE
|
58
|
+
spigit_attr :URI_PREDICATION_MARKET_HOME
|
59
|
+
spigit_attr :URI_RECENT_MARKETS
|
60
|
+
spigit_attr :URI_REPORTS_HOME
|
61
|
+
spigit_attr :URI_RESETUSER
|
62
|
+
spigit_attr :URI_SEARCH
|
63
|
+
spigit_attr :URI_STORE
|
64
|
+
spigit_attr :URI_STORE_HOME_PAGE
|
65
|
+
spigit_attr :URI_TAG_SEARCH
|
66
|
+
spigit_attr :URI_TRADE_SHARES_PAGE
|
67
|
+
spigit_attr :URI_VIEWBLOG
|
68
|
+
spigit_attr :URI_VIEWBLOGENTRY
|
69
|
+
spigit_attr :URI_VIEWIDEA
|
70
|
+
spigit_attr :URI_VIEWIDEA_VERSION
|
71
|
+
spigit_attr :URI_VIEWPROFILE
|
72
|
+
spigit_attr :URI_VIEWSECTOR
|
73
|
+
spigit_attr :URI_VIEW_ALL_BLOGS_PAGE
|
74
|
+
spigit_attr :URI_VIEW_BLOGCOMMENT
|
75
75
|
|
76
76
|
attr_reader :doc, :file, :spigit_config
|
77
|
-
|
77
|
+
|
78
78
|
def initialize(opts = {})
|
79
79
|
@file = opts.fetch(:file)
|
80
80
|
@doc = Nokogiri::XML(File.read(@file)) { |x| x.noblanks }
|
data/lib/spigit_conf/version.rb
CHANGED
data/spigit_conf.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "nokogiri", "~> 1.6.6.0"
|
22
|
+
spec.add_runtime_dependency "4.0.2", "> 4.0.0"
|
22
23
|
|
23
24
|
spec.add_development_dependency "bundler", "~> 1.9"
|
24
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spigit_conf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Barnett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.6.6.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: 4.0.2
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.0.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|