spigit_conf 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 804dc0d155bb8acc1c13632ee9de8abb9bb809e7
4
- data.tar.gz: 378c431284fdad6b4f98d214c1c575376477defd
3
+ metadata.gz: 4e45f056e91cfca0834bc33118bde6a37f065752
4
+ data.tar.gz: 898a9ad0b1a0be65d0e0dd06ece874b55329a125
5
5
  SHA512:
6
- metadata.gz: 17908ca80f28e50522d5218e24e8e221a545a2b47469ac3956a2db87e61b5c36a6569d9ba2f32cdb744b0c62d9124c5906d47eb5d046f8ac6198282dd8ead64f
7
- data.tar.gz: 2e5ecf89242ddfeefa24373f8c5e05d178a644c915b04ee01a45b4417f5ae51a23ebf52219b1333e77639c74d103f974e4edd4aedd6e2563457660ca9025338e
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, *methods)
4
+ def spigit_attr(java_key, *aliases)
3
5
  java_key = java_key.to_s
4
- name = methods.first.to_s
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
 
@@ -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, :activity_feed_throttle
9
- spigit_attr :ACTIVITY_STREAM_SCHEMA, :activity_stream_schema
10
- spigit_attr :ACTIVITY_STREAM_SERVER_URL, :activity_stream_server_url
11
- spigit_attr :BASE_DOMAIN, :base_domain
12
- spigit_attr :BROKER_HOST, :broker_host
13
- spigit_attr :BROKER_PORT, :broker_port
14
- spigit_attr :COMPUTE_CATEGORY_REPUTATION, :compute_category_reputation
15
- spigit_attr :COOKIE_DOMAIN, :cookie_domain
16
- spigit_attr :DB_NAMES, :db_names
17
- spigit_attr :DB_NAME_USER, :db_name_user
18
- spigit_attr :DRAG_AND_DROP_ENABLED, :drag_and_drop_enabled
19
- spigit_attr :FORM_ID_CHECKED, :form_id_checked
20
- spigit_attr :GRID_BASED_THEME_ONLY, :grid_based_theme_only
21
- spigit_attr :IDEAS_RECOMMENTORS, :ideas_recommentors
22
- spigit_attr :IDEAS_RECOMMENTORS_WEIGHTS, :ideas_recommentors_weights
23
- spigit_attr :JASPERSERVER_URL, :jasperserver_url
24
- spigit_attr :JSP_SECTOR_THREADS_HOME, :jsp_sector_threads_home
25
- spigit_attr :LABEL_EDASHBOARD, :label_edashboard
26
- spigit_attr :LABEL_LEADERBOARD, :label_leaderboard
27
- spigit_attr :MAX_IDLE_BROWSER_PERIOD, :max_idle_browser_period
28
- spigit_attr :PARAM_INFO_MESSAGE, :param_info_message
29
- spigit_attr :RECOMMENDED_IDEAS_WINDOW, :recommended_ideas_window
30
- spigit_attr :RESOURCE_SERVER_URL, :resource_server_url
31
- spigit_attr :SEARCH_HOST, :search_host
32
- spigit_attr :SEARCH_SERVER_PORT, :search_server_port
33
- spigit_attr :SECURITY_LEVEL, :security_level
34
- spigit_attr :SITEMAP_FILE_PATH, :sitemap_file_path
35
- spigit_attr :SITE_ID, :site_id
36
- spigit_attr :SPIGIT_FROM_DISPLAY_NAME, :spigit_from_display_name
37
- spigit_attr :SSO_REDIRECT_LOGIN_URL, :sso_redirect_login_url
38
- spigit_attr :SSO_REDIRECT_REGISTER_URL, :sso_redirect_register_url
39
- spigit_attr :TM_CONTENT_FIELD, :tm_content_field
40
- spigit_attr :TM_NUMBER_TOPIC, :tm_number_topic
41
- spigit_attr :URI_ADDUSER_PAGE, :uri_adduser_page
42
- spigit_attr :URI_AGGREGATED_BLOGS_PAGE, :uri_aggregated_blogs_page
43
- spigit_attr :URI_BLOG_MODERATE_PAGE, :uri_blog_moderate_page
44
- spigit_attr :URI_COMMUNITY, :uri_community
45
- spigit_attr :URI_DASHBOARD, :uri_dashboard
46
- spigit_attr :URI_DASHBOARD, :uri_dashboard
47
- spigit_attr :URI_EDITPROFILE, :uri_editprofile
48
- spigit_attr :URI_HOMEPAGE, :uri_homepage
49
- spigit_attr :URI_LEADERBOARD, :uri_leaderboard
50
- spigit_attr :URI_MARKET_HOME, :uri_market_home
51
- spigit_attr :URI_MOST_ACTIVE_MARKETS, :uri_most_active_markets
52
- spigit_attr :URI_PAGE_POSTBLOGCOMMENT, :uri_page_postblogcomment
53
- spigit_attr :URI_PAGE_POSTBLOGENTRY, :uri_page_postblogentry
54
- spigit_attr :URI_PENDING_APPROVALS_ACTION, :uri_pending_approvals_action
55
- spigit_attr :URI_POSTIDEA, :uri_postidea
56
- spigit_attr :URI_POSTSECTOR, :uri_postsector
57
- spigit_attr :URI_POST_MARKET_PAGE, :uri_post_market_page
58
- spigit_attr :URI_PREDICATION_MARKET_HOME, :uri_predication_market_home
59
- spigit_attr :URI_RECENT_MARKETS, :uri_recent_markets
60
- spigit_attr :URI_REPORTS_HOME, :uri_reports_home
61
- spigit_attr :URI_RESETUSER, :uri_resetuser
62
- spigit_attr :URI_SEARCH, :uri_search
63
- spigit_attr :URI_STORE, :uri_store
64
- spigit_attr :URI_STORE_HOME_PAGE, :uri_store_home_page
65
- spigit_attr :URI_TAG_SEARCH, :uri_tag_search
66
- spigit_attr :URI_TRADE_SHARES_PAGE, :uri_trade_shares_page
67
- spigit_attr :URI_VIEWBLOG, :uri_viewblog
68
- spigit_attr :URI_VIEWBLOGENTRY, :uri_viewblogentry
69
- spigit_attr :URI_VIEWIDEA, :uri_viewidea
70
- spigit_attr :URI_VIEWIDEA_VERSION, :uri_viewidea_version
71
- spigit_attr :URI_VIEWPROFILE, :uri_viewprofile
72
- spigit_attr :URI_VIEWSECTOR, :uri_viewsector
73
- spigit_attr :URI_VIEW_ALL_BLOGS_PAGE, :uri_view_all_blogs_page
74
- spigit_attr :URI_VIEW_BLOGCOMMENT, :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 }
@@ -1,3 +1,3 @@
1
1
  module SpigitConf
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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-03-28 00:00:00.000000000 Z
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