editable 0.1.1 → 0.1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -23
  3. data/lib/editable/version.rb +1 -1
  4. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6e50dd87b8f3054c8514a41782e8ce3945ec0b5
4
- data.tar.gz: e31f94964efac49e330ef88c19acaae4a7afde11
3
+ metadata.gz: b724f8e7f37b9af6270e46693f8ac2c0fffc25c0
4
+ data.tar.gz: c9daaaad9bae272aaac36e4dd80d87b861244fa5
5
5
  SHA512:
6
- metadata.gz: 38d5759ab030c5e5a88414e10a732d2022094f3ba6c0da87896f8086db8a04c65f71a8c50cb696cb8e191a10511eea82ee10bf9a7669770f06f8145ba28092d8
7
- data.tar.gz: 3cf1cd4702d1b9127d15e18bdc77f2d47f2e7b2f71f642b5606e2d5612a8e9775e43b20ff001fdd7d322ac6af3c9e12a44f0e0bb12151fc485fe4c6c89c15548
6
+ metadata.gz: bb38beea45594b9127d7a86e3789f7fbae2cb20a9feecad2a4f532904cd13d7dd319468a832e70d901ccd74fb0448269badaba063c613708c2257c1b0152811b
7
+ data.tar.gz: 6963c0fb1399fe4c72ef8ca8989df9a306ccf31106dd964d71d95bcd09cfddeb23e7c9dee24d1579eb2bf2b3f1d23a236ae9c79c28f0494bbb6ff570e54da821
data/README.md CHANGED
@@ -1,35 +1,29 @@
1
1
  # editable-rails
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/testgem`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Make ActiveRecord-objects editable from frontend.
6
4
 
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
11
9
  ```ruby
12
- gem 'testgem'
10
+ gem 'editable'
13
11
  ```
14
12
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install testgem
22
-
23
13
  ## Usage
24
14
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/testgem.
15
+ `app/assets/javascripts/application.js`:
16
+
17
+ ```javascript
18
+ // ...
19
+ //= require jquery
20
+ //= require editable
21
+ // ...
22
+ $(document).ready(function(){
23
+ $(this).find("[data-editable]").each(function(){
24
+ // apply aditable independantly. otherwise cant distinguish elements from within editable-plugin
25
+ $(this).editable();
26
+ });
27
+ });
28
+ // ...
29
+ ```
@@ -1,3 +1,3 @@
1
1
  module Editable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ckn
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2017-06-20 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jquery-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.0
13
27
  description: desc.
14
28
  email:
15
29
  - ckn@freibrief.net