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 +4 -4
- data/lib/wedge.rb +5 -2
- data/lib/wedge/events.rb +1 -3
- data/lib/wedge/middleware.rb +1 -1
- data/lib/wedge/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c93ae71aeb6b571d456229ac1c8f445b90d22d7
|
4
|
+
data.tar.gz: d11d01de2de851f3a4bda2d463f763d86c6ae68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8011b201963883dc776f0f5928d9d22ace4f25ef2f817170c164dc3cd5b075ca9a30cbd3818513f433cbd468614d97c5b1bad8073eec13f297ce78f18a3e91a1
|
7
|
+
data.tar.gz: 164309fabb1a40652cda03ff73c2997e8e8db8466b3ba4ce45e6939e236310f80492744fef213e866cced7c68853921c9df9d0e61ddf5fb7895dcca35bbadca6
|
data/lib/wedge.rb
CHANGED
@@ -107,7 +107,7 @@ class Wedge
|
|
107
107
|
scripts << %{<script src="#{url}"></script>}
|
108
108
|
end
|
109
109
|
|
110
|
-
scripts << %{<script>#{Wedge::Opal::
|
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
|
-
|
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
|
data/lib/wedge/events.rb
CHANGED
@@ -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 |
|
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']
|
data/lib/wedge/middleware.rb
CHANGED
@@ -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::
|
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]
|
data/lib/wedge/version.rb
CHANGED
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
|
+
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-
|
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.
|
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
|