diva 0.2.1 → 0.3.0

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: 294ace1f70016d867a7485564ddcc874b0fa1c34
4
- data.tar.gz: ae3ee191438c3fe8a41e0a6963de64f7d243e305
3
+ metadata.gz: 32c42c53cdc1c9bbdcaca44be78cb1802a4a8c2d
4
+ data.tar.gz: 5a82b7d204e5d1da8b4be122b5a760d218ee4f18
5
5
  SHA512:
6
- metadata.gz: 17d75018efc53746ca4b23ba3c7d64d17efe8e5e733367ee03f6f3dc3c586d9745d8ece953a2779d0723fd15d073278dd03a6764ed6ce152a807cdeef9be3862
7
- data.tar.gz: 4465ccf523a84506f4a3c00e127357407a236fe95cabe2e02a263fae9478ca31bb397a40e478d0f0f9e3e7c33f28f03c496f6e8e6721cad7fd511ff294702123
6
+ metadata.gz: adbe743fa2579e3575623f0923e33f25b2e8ecf1dfab8ffdd8b0cd994d2416642d264af978e48b2a0f43add06d2d2739fc4415cfe0c1ed20d7b9e6b386e40d20
7
+ data.tar.gz: 175d0fb4142c27b823862135330f73e2969f8be74e6abc4977d10c035ed6492fe0192b57da6ee8add473b3d7a794abf56207e1f21ff80945122c1060c89cfdb1
data/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Diva
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/diva`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This library is an implementation of expression for handling things.
4
+ It replaces Retriever module of mikutter.
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ Diva::Model is a common interface of all resources handled by mikutter.
7
+ By handling data as a subclass of Diva::Model as necessary,
8
+ you can obtain a common interface and it is useful for cooperation
9
+ among mikutter plugins.
6
10
 
7
11
  ## Installation
8
12
 
data/lib/diva/model.rb CHANGED
@@ -85,6 +85,10 @@ class Diva::Model
85
85
  Hash[self.class.fields.map{|f| [f.name, fetch(f.name)] }]
86
86
  end
87
87
 
88
+ def to_json(*rest, **kwrest)
89
+ to_hash.to_json(*rest, **kwrest)
90
+ end
91
+
88
92
  # カラムの生の内容を返す
89
93
  def fetch(key)
90
94
  @value[key.to_sym]
data/lib/diva/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Diva
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiaki Asai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.6.11
151
+ rubygems_version: 2.6.13
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Implementation of expression for handling things.