SrBuj 0.5.1 → 0.5.2
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 +15 -0
- data/README.md +9 -13
- data/lib/SrBuj/version.rb +1 -1
- metadata +39 -18
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Y2I5NDgxMDI5MGNjMjYyNjBmNjEyODRhNzIyYTc3NDAyOWQzMDczMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
Njk1NzE0Yjc5MzBhZGY3NWExNjRkMjNhOTEzNThjM2FiZmI5ZDc5Ng==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZGFiYjI4M2E1MGNhYWE4NmUwODAwNWE3ZjZhZGFlMDNjNDY1MDQxODk4ZWNi
|
10
|
+
NjY4MGNiNTYwMTA0ZTBlOWQ1ZWFkZTg5ODg0NmEyZjNjNGVkNjc1YjNjYzdm
|
11
|
+
YTU4NzcxM2NkOGRhNTA0ZjQ0ZGMyYTFhYTdlZGUwYWFjZjdjNGM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTkzZWUzNWQzZTdkMDJkY2Y2NDBjOTViNDE4YWYyMmNhMzVkYzI2NWNlMjBi
|
14
|
+
MjU0ODA2MDQwNmRhYzU4ZDY3Yjk2YWU1NzQxZTcxMWU1YzkwN2Y3M2JhMTI4
|
15
|
+
NWM3N2Y5NTA1MTBmZjI5NWVmZWJmZGRjY2Q5M2M3NmZiMGMxNzM=
|
data/README.md
CHANGED
@@ -13,22 +13,18 @@ SrBuj comes to cure a common illness in a life of every Rails developer (maybe o
|
|
13
13
|
- replace an specific element (PUT/PATCH)
|
14
14
|
- bind a callback to run specific js function.
|
15
15
|
|
16
|
-
every time, we end up with a lot of code, ugly code, messy code...
|
16
|
+
every time, we end up with a lot of code, ugly code, messy code or at best with an old and known .js.rb file with the same 4 lines... Well enough it's enough!
|
17
|
+
This is the cure...and comes with a simple treatment too!
|
17
18
|
|
18
|
-
And every time we end up doing an old and known .js.rb file, with the same 4 lines... Well enough it's enough!
|
19
|
-
|
20
|
-
This is the cure... and comes with a simple treatment too!
|
21
19
|
Steps:
|
22
|
-
|
23
|
-
2. required in your manifest
|
24
|
-
3. add the magic data attributes to the element
|
25
|
-
4. Enjoy de js-less ! :-)
|
20
|
+
-
|
26
21
|
|
27
|
-
|
22
|
+
1. bundle the gem
|
23
|
+
2. required in your manifest
|
24
|
+
3. add the 'magic data attributes' to the element
|
25
|
+
4. enjoy the js-less ! :-)
|
28
26
|
|
29
|
-
|
30
|
-
- make non-GET requests from hyperlinks
|
31
|
-
- make any submit data asynchronously with Ajax and handle the response in a dry way.
|
27
|
+
This unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application.
|
32
28
|
|
33
29
|
These features are achieved by adding certain ["data" attributes][data] to your HTML markup. In Rails, they are added by the framework's template helpers.
|
34
30
|
|
@@ -87,7 +83,7 @@ modal
|
|
87
83
|
in your view (example with a link and haml)
|
88
84
|
|
89
85
|
````haml
|
90
|
-
= link_to 'add Element' elements_path, remote: true, data: {target: 'partial-id', modal: true}
|
86
|
+
= link_to 'add Element', elements_path, remote: true, data: {target: 'partial-id', modal: true}
|
91
87
|
|
92
88
|
|
93
89
|
#partial-id
|
data/lib/SrBuj/version.rb
CHANGED
metadata
CHANGED
@@ -1,49 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: SrBuj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- gagoar
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: railties
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ! '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '3.1'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jquery-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.1'
|
36
55
|
- !ruby/object:Gem::Dependency
|
37
56
|
name: rake
|
38
|
-
requirement:
|
39
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
40
58
|
requirements:
|
41
59
|
- - ! '>='
|
42
60
|
- !ruby/object:Gem::Version
|
43
61
|
version: '0'
|
44
62
|
type: :development
|
45
63
|
prerelease: false
|
46
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
47
69
|
description: Better Unobtrusive JavaScript Request in asset pipeline
|
48
70
|
email:
|
49
71
|
- xeroice@gmail.com
|
@@ -59,27 +81,26 @@ files:
|
|
59
81
|
homepage: http://gagoar.github.com/SrBuj/
|
60
82
|
licenses:
|
61
83
|
- MIT
|
84
|
+
metadata: {}
|
62
85
|
post_install_message:
|
63
86
|
rdoc_options: []
|
64
87
|
require_paths:
|
65
88
|
- lib
|
66
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
90
|
requirements:
|
69
91
|
- - ! '>='
|
70
92
|
- !ruby/object:Gem::Version
|
71
93
|
version: '0'
|
72
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
95
|
requirements:
|
75
96
|
- - ! '>='
|
76
97
|
- !ruby/object:Gem::Version
|
77
98
|
version: '0'
|
78
99
|
requirements: []
|
79
100
|
rubyforge_project:
|
80
|
-
rubygems_version:
|
101
|
+
rubygems_version: 2.0.3
|
81
102
|
signing_key:
|
82
|
-
specification_version:
|
103
|
+
specification_version: 4
|
83
104
|
summary: http://github.com/gagoar/SrBuj/
|
84
105
|
test_files: []
|
85
106
|
has_rdoc:
|