jsdj 0.0.6 → 0.0.7

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 (7) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +21 -33
  3. data/Gemfile.lock +1 -1
  4. data/README.md +16 -1
  5. data/lib/jsdj/version.rb +1 -1
  6. metadata +1 -2
  7. data/tmp +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72e2d3f7b27879b34e1d2c280632f7588f336d46
4
- data.tar.gz: 364b92f7d1ee412cafd5e134fb92ed88b9305cf7
3
+ metadata.gz: b7646abd96d7b88f0b181bb1e222a3149f885cbc
4
+ data.tar.gz: ef582f0d57d39208d98cf798ab9642a43fd2b453
5
5
  SHA512:
6
- metadata.gz: 451c2763265803a3b014475a52362298c2e1c62592cca7d95568571f58439e29bb8ab6248f8276d526c8164432e88627891fa6c980c65c4c8475acec81e7de5d
7
- data.tar.gz: ceaebfc441deac3ddb04ac8914a0f621c6e17cc86291a6d74627fe95ee24ea50431e121b56d6e83f8c882fa75ed507ce7a084fad0cb889944c5344bbff7f40f1
6
+ metadata.gz: 0b2bd508f54a165b073cb8090e684135fb5f0022fa3863d6c4610a783784b217f9d3cf7e8ac211097c137cb6ed3da808a9797d51a9d1b56ef8682a1ebb957f1e
7
+ data.tar.gz: b00943596491cada659bb01285b97c064314bc369bded2a0d5bf356370b6bb8425d494dddd7d375a050f44dc8f03da6204f4f30dee1d44c559371dd8e5996ec6
data/.gitignore CHANGED
@@ -1,35 +1,23 @@
1
1
  *.gem
2
2
  *.rbc
3
- /.config
4
- /coverage/
5
- /InstalledFiles
6
- /pkg/
7
- /spec/reports/
8
- /test/tmp/
9
- /test/version_tmp/
10
- /tmp/
11
-
12
- ## Specific to RubyMotion:
13
- .dat*
14
- .repl_history
15
- build/
16
-
17
- ## Documentation cache and generated files:
18
- /.yardoc/
19
- /_yardoc/
20
- /doc/
21
- /rdoc/
22
-
23
- ## Environment normalisation:
24
- /.bundle/
25
- /vendor/bundle
26
- /lib/bundler/man/
27
-
28
- # for a library or gem, you might want to ignore these files since the code is
29
- # intended to run in multiple environments; otherwise, check them in:
30
- # Gemfile.lock
31
- # .ruby-version
32
- # .ruby-gemset
33
-
34
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
- .rvmrc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
23
+ .run
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jsdj (0.0.6)
4
+ jsdj (0.0.7)
5
5
  therubyracer (~> 0.12)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -7,7 +7,22 @@
7
7
 
8
8
  # What is this?
9
9
 
10
- A work in progress
10
+ **Jsdj** was purpose built for [Flok](http://github.com/sotownsend/flok) to allow for macros within javascript code that look
11
+ like traditional javascript code.
12
+
13
+ # How to use it
14
+ ```ruby
15
+ @dj = Jsdj.new do |dj|
16
+ #When ever the function puts(...) is written in javascript,
17
+ #It will be replaced by what ever is returned within this
18
+ #block. i.e. makes the function call an inlined macro
19
+ dj.replace_function_call "puts" do |params|
20
+ raise "must have one function argument" if params.length != 1
21
+ raise "argument must be a string literal" if params.length != 1
22
+ end
23
+ end
24
+ ```
25
+
11
26
 
12
27
  # Supported platforms
13
28
  * iOS 8 (iPhone)
@@ -1,3 +1,3 @@
1
1
  module Jsdj
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsdj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - seo
@@ -113,7 +113,6 @@ files:
113
113
  - lib/jsjd.rb
114
114
  - logo.png
115
115
  - spec/hello_spec.rb
116
- - tmp
117
116
  homepage: https://github.com/sotownsend/jsdj
118
117
  licenses:
119
118
  - MIT
data/tmp DELETED
@@ -1,3 +0,0 @@
1
- module Jsdj
2
- VERSION = "0.0.6"
3
- end