jv 0.1.0 → 0.1.1

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: 4659c720a7cf96cb6e041588e660105b7073ae39
4
- data.tar.gz: c53b26a7660f2fe140b20a067da5326f70132c29
3
+ metadata.gz: 58480883755afa24599b89d40b22d2ace1c7786b
4
+ data.tar.gz: e3f1da80443de684c57338d32122a875c7477722
5
5
  SHA512:
6
- metadata.gz: 4657fb5f3959d9af6a9deb2cd7b983855e01b6de6d59395dfc0c38e941b5b368b23731e06e0d559c4d5cb14f359855ee9d4b393b09b59936cfcafab9b361c18a
7
- data.tar.gz: 1116ddeafae5714e5e43f0fbc53ae64a321827df68079d0010fdee29d1915adae1ced67170c3d4534bcccb26f2ffe2980ab64b462f49c98ba684c694da151883
6
+ metadata.gz: b23a21463d6a9f56270d62d48a312dcf4df7c2666863af0a718a069bcbdbc4135cb7c1577e0279dc22b8bd97fbfd5368080fe557c5fd6fa5e18c13e24c4bf7e1
7
+ data.tar.gz: d1ffac5592f8797fc7c14df620203c1ce2f1c4ef76675d976c3af841c9210917dd576f9b862fbf4be6a3304f38ea3c9b2699b7c50d1a2976fb725d44441e2214
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 tzmfreedom
3
+ Copyright (c) 2017 Makoto Tajitsu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -63,7 +63,7 @@ This response is following
63
63
 
64
64
  ## Benchmark
65
65
 
66
- Benchmark script is there.
66
+ Benchmark script is here.
67
67
  * [bin/benchmark.rb](https://github.com/tzmfreedom/jv/blob/master/spec/dummy_app/bin/benchmark.rb)
68
68
  * [api_controller.rb](https://github.com/tzmfreedom/jv/blob/master/spec/dummy_app/app/controllers/api_controller.rb)
69
69
 
@@ -159,7 +159,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
159
159
 
160
160
  ## Contributing
161
161
 
162
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jv.
162
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tzmfreedom/jv.
163
163
 
164
164
  ## License
165
165
 
@@ -1,4 +1,3 @@
1
- require 'jv/view'
2
1
  require 'jv/render'
3
2
 
4
3
  module Jv
@@ -11,7 +10,7 @@ module Jv
11
10
  r ||= Jv::Render.new(self)
12
11
  _partial ||= nil
13
12
  hash = ->{ #{template.source} }.()
14
- _partial.nil? ? hash.to_json : Jv::View.new(hash)
13
+ _partial.nil? ? hash.to_json : "\#{hash.to_json},"
15
14
  SRC
16
15
  end
17
16
  end
@@ -1,3 +1,3 @@
1
1
  module Jv
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makoto Tajitsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,6 @@ files:
88
88
  - lib/jv/railtie.rb
89
89
  - lib/jv/render.rb
90
90
  - lib/jv/version.rb
91
- - lib/jv/view.rb
92
91
  homepage: https://github.com/tzmfreedom/jv
93
92
  licenses:
94
93
  - MIT
@@ -1,11 +0,0 @@
1
- module Jv
2
- class View
3
- def initialize(hash)
4
- @hash = hash
5
- end
6
-
7
- def to_s
8
- "#{@hash.to_json},"
9
- end
10
- end
11
- end