wedge 0.2.4 → 0.2.5

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: 54944284d00e24ca9e6e454c117aba4d64a9af6e
4
- data.tar.gz: 77d2c5b902b1554c3603c281c1dd22a61aacc50b
3
+ metadata.gz: 8c93ae71aeb6b571d456229ac1c8f445b90d22d7
4
+ data.tar.gz: d11d01de2de851f3a4bda2d463f763d86c6ae68e
5
5
  SHA512:
6
- metadata.gz: 06d7116b3e7ddef035a3905ddc83f8af1d90f0228f9a679e89747cd9f6b4ddcc1bcefc74c89ba779e60cdbc6849770334b32df7850fcc2de156f303161ae1e22
7
- data.tar.gz: b2dcb475ae9ff5b2e03217b0c92b3cc8262a26918538ec9268b3d15df3d50672d4bba32762a0e8a8ba5c83e69eb6f7bdc881d8b40fe8ca56279b687233bf5fd5
6
+ metadata.gz: 8011b201963883dc776f0f5928d9d22ace4f25ef2f817170c164dc3cd5b075ca9a30cbd3818513f433cbd468614d97c5b1bad8073eec13f297ce78f18a3e91a1
7
+ data.tar.gz: 164309fabb1a40652cda03ff73c2997e8e8db8466b3ba4ce45e6939e236310f80492744fef213e866cced7c68853921c9df9d0e61ddf5fb7895dcca35bbadca6
@@ -107,7 +107,7 @@ class Wedge
107
107
  scripts << %{<script src="#{url}"></script>}
108
108
  end
109
109
 
110
- scripts << %{<script>#{Wedge::Opal::Processor.load_asset_code(sprockets, name)}</script>}
110
+ scripts << %{<script>#{Wedge::Opal::Sprockets.load_asset(name, sprockets)}</script>}
111
111
 
112
112
  scripts.join "\n"
113
113
  end
@@ -162,7 +162,8 @@ class Wedge
162
162
  # @param name [String, Symbol, #to_s] The unique name given to a component.
163
163
  # @return [Wedge::Component#method] Last line of the method called.
164
164
  def [](*args, &block)
165
- config.component_class[args.shift].wedge_new self, *args, &block
165
+ name = args.shift
166
+ config.component_class[name.to_sym].wedge_new self, *args, &block
166
167
  end
167
168
 
168
169
  %w(store scope).each do |meth|
@@ -198,6 +199,8 @@ class Wedge
198
199
  @append_paths ||= begin
199
200
  Wedge::Opal.append_path method(:assets_url).source_location.first.sub('/wedge.rb', '')
200
201
  Wedge::Opal.append_path "#{Dir.pwd}/#{config.app_dir}"
202
+
203
+ true
201
204
  end
202
205
  end
203
206
  end
@@ -98,9 +98,7 @@ class Wedge
98
98
  params = {}
99
99
 
100
100
  # loop through all the forum values
101
- el.serialize_array.each do |row|
102
- field, _ = row
103
-
101
+ el.serialize_array.each do |field|
104
102
  # we need to make it native to access it like ruby
105
103
  field = Native(field)
106
104
  name = field['name']
@@ -74,7 +74,7 @@ class Wedge
74
74
  if wedge_path == 'wedge/list_assets'
75
75
  res = {
76
76
  urls: Wedge.get_asset_urls(data[:path_name]),
77
- code: Wedge::Opal::Processor.load_asset_code(Wedge.config.opal[:server].sprockets, data[:path_name])
77
+ code: Wedge::Opal::Sprockets.load_asset(data[:path_name], Wedge.config.opal[:server].sprockets)
78
78
  }
79
79
  elsif method_args == '__wedge_data__' && data
80
80
  method_args = [data]
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal-jquery
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  version: '0'
251
251
  requirements: []
252
252
  rubyforge_project:
253
- rubygems_version: 2.2.2
253
+ rubygems_version: 2.4.5.1
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: Components for the Browser and Server