jishan_fast_track_gem 0.1.13 → 0.1.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f64eba00a1433661823e20a32f1c75abbd03655249dcd4e31920a0f90232842
4
- data.tar.gz: 58efb93f674470f24eab69c7af2cfadd034c310d95ebbd9f842f110417378154
3
+ metadata.gz: ef81de508e2f0c7e201d363ba14ed5bdd53b065ac967410e085f1f73fd7410c6
4
+ data.tar.gz: b6d53990bf8fd209090965b199980ef49e0a4556ca01b33fa352c96f04514a68
5
5
  SHA512:
6
- metadata.gz: 0340ba5c291065a9af02fa65da465b3d0994f60e95416d1d1d92a40ba1c41bfbfd35cb92a596d1b88c00f45a13192712bc95ddbbeb7ebff9bdd8ef4ecd5b2b7b
7
- data.tar.gz: cb7d8c457e8449bb55bfa59eaca3501eda1dc8ed98a0cd46cfc646e3a0a3b5f3f8b1b5da968f420dcf123b116b5693ffb37bc6b66ca349b24eab1e5ee7408bbc
6
+ metadata.gz: d7866b62f19042d6c3a8044c63edccf0c8f1f1b77cf279bbfd5ac1598b770055288d1adf52111e3e75bb7cffd6a48351c290222df67258162117b6657303026e
7
+ data.tar.gz: 16d5e9e16a00b1b8107f5caf6192530389f37181db8d0f98440af25e60cfdf2c78050ac9e51989e9954e8f953113e948f1af78f8ed897762af74703571e4acd8
data/README.md CHANGED
@@ -1,44 +1,107 @@
1
- # JishanFastTrackGem
1
+ ### Source control respository
2
+ https://github.com/jishan33/T1A2
2
3
 
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/jishan_fast_track_gem`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Software Development Plan
6
+ --------------------------
7
+ The main purpose of building this app is to try to combine my coding knowledge and engineering background at an entry-level. Hopefully, I can extend this experience to further apply more complex coding concepts into the engineering field in the near future.
8
+ I like the idea of using technology to ease people’s life and simultaneously providing a more environmental environment. Solar panel rebate is a great program to encourage people to use more sustainable energy to support a more independent and efficient lifestyle. Making the program process more accessible is a great way to promote the concept of combing technology and sustainable energy.
6
9
 
7
- ## Requirements
8
- - Ruby is required to install the Gem
10
+ This application will make the rebate process easier for users and managers as all the process can be completed in one terminal app.
9
11
 
10
- ## Installation
12
+ Users can check if they are eligible by answering a short questionnaire. Also, they can easily check whether all the files have been successfully uploaded. The rebate can be easily evaluated by simply provide postcode, kw and deeming year.
11
13
 
12
- Install the gem on your local system:
14
+ The manager can easily arrange the lists of applicants and assign applicants to the appropriate lists as well as remove it.
13
15
 
14
- ```
15
- gem install jishan_fast_track_gem
16
- ```
16
+ Although the information for the solar panel rebates can be easily accessed online, the applying process sometimes can be hectic.
17
17
 
18
- And then execute:
18
+ In order to reduce the difficulty of applying process. Transforming the long and bland list into a more interactive questionnaire might increase the number of potential applicants.
19
19
 
20
- $ jishan_fast_track_gem
20
+ Also, providing the rebate assessment and the eligibility check on the same platform encourages the potential applicants to go through the process. Allocating the rebate calculator at the beginning could potentially increase their interests in this rebate program.
21
21
 
22
+ The target audiences are the property owners with less than 180,000 households combined income who would like to install some solar panels on their properties.
22
23
 
23
- ## Usage
24
+ This terminal app is a comparably easy process for them to use. They probably would play around with this app to have some basic ideas about this rebate program. And further, apply it with the required documents.
24
25
 
25
- After executing the program,
26
+ Three features description
27
+ ----------------------------
28
+ ### Check Rebate Eligibility
26
29
 
27
- ## Development
30
+ The program will prompt the user with several yes/no questions. Based on the users’ response to these questions, the program will determine whether or not the user is eligible for the solar panel rebate program. The users’ answers will be put into an array and rules from the Victoria solar panel rebate information website (see references) will be used to determine eligibility based on the users’ responses once all responses have been collected.
28
31
 
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.
32
+ ### Check Required Files
33
+ As part of the application process for the rebate, several documents need to be collected including proof of income, two forms of identification and a quote from a certified retailer. The application will prompt the user for a link to the above and assist in ensuring that the links provided are valid URLs to a supported file type (pdf or doc file). In the case of the quote, the domain of the URL is used to check that the quote comes from a retailer from the CEC (Clean Energy Council) approved solar retailers (see references) in Victoria. During this process, the user can also opt to exit the program at any time by providing a '0' as a response.
30
34
 
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).
35
+ ### Calculate Solar Panel Rebate
36
+ Finally, the program will prompt the user for the details of their solar installation and postcode. Based on this information, it will apply the Small-scale Technology Certificates (STC) equation (see references) in order to determine the number of STC's for the installation. The program will then multiply this number by the current market value of STC's at the time of implementation (see references).
32
37
 
33
- ## Contributing
38
+ Once this calculation has been completed, the program will display the results to the user and exit.
34
39
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jishan_fast_track_gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/jishan_fast_track_gem/blob/master/CODE_OF_CONDUCT.md).
36
40
 
37
41
 
38
- ## License
39
42
 
40
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
43
 
42
- ## Code of Conduct
44
+ Outline of the user interaction and experience
45
+ ----------------------------
46
+ The user will be interactively guided through each feature of the program on program launch.
47
+
48
+ Initially, some instructions are displayed to the user to prime them as to what to expect from the program.
49
+
50
+ After this, each feature of the program guides the user by prompting them for the required information as needed. The results are then printed to the terminal.
51
+
52
+ If the program encounters any errors during this process (ie, invalid user input), the program will restate the input requirements and prompt the user to input again.
53
+
54
+
55
+
56
+
57
+ Implementation Plan
58
+ ----------------------------
59
+
60
+ Please refer to my [Trello board](https://trello.com/b/QiHS8LxP/t1a2)
61
+
62
+
63
+
64
+ Requirements
65
+ ---
66
+ - Ruby
67
+ - Bundler
68
+
69
+ Installation
70
+ ----
71
+
72
+ - Clone the repository
73
+ - Run bundle install
74
+
75
+
76
+
77
+ Usage
78
+ ---
79
+ Run `./bin/jishan_solar_rebate`
80
+
81
+
82
+ This is a command-line application rather than a library so no need to add anything to your Gemfile.
83
+
84
+ Script to run the application has been included in the `bin` directory for ease of use.
85
+
86
+ After running the application, you will be provided with instructions.
87
+
88
+
89
+ Reference
90
+ ---------------------
91
+ Victoria solar panel rebate information
92
+ https://www.solar.vic.gov.au/solar-panel-rebate
93
+
94
+ Postcode ratings for photovoltaic systems
95
+ http://www.cleanenergyregulator.gov.au/DocumentAssets/Documents/Postcode%20zone%20ratings%20and%20postcode%20zones%20for%20solar%20panel%20systems.pdf
96
+
97
+ STCs (Small_scale Technology Certificates) equation
98
+ http://www.solazone.com.au/solar-power/off-grid-solar-power/calculating-stcs/
99
+
100
+ CEC (Clean Energy Council) approved solar retailers in Australia
101
+ https://www.greenwire.com.au/clean-energy-council-approved-solar-retailers/
102
+
103
+ STCs current market value
104
+ https://www.tradeingreen.com.au/prices-93.html
105
+
106
+
43
107
 
44
- Everyone interacting in the JishanFastTrackGem project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jishan_fast_track_gem/blob/master/CODE_OF_CONDUCT.md).
@@ -1,3 +1,3 @@
1
1
  module JishanFastTrackGem
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
@@ -8,7 +8,7 @@ require_relative 'manage_list'
8
8
  # Help file includes *comprehensive* instructions which *accurately* describe: steps to install the application; dependencies required by the application; system/hardware requirements; features of the application.
9
9
 
10
10
  john = Eligibility_check.new("John")
11
- john.ower_of_the_property
11
+ # john.ower_of_the_property
12
12
  john_files = Files_check.new("John Files")
13
13
  # john_files.income_proof
14
14
 
@@ -27,8 +27,8 @@ john_files = Files_check.new("John Files")
27
27
 
28
28
  # p Manage_list.display_processing_number
29
29
 
30
- john_rebate = Rebate_calculator.new(3163, 5, 7)
31
- john_rebate.stc_postcode_rating
30
+ john_rebate = Rebate_calculator.new
31
+ john_rebate.ask_parameters
32
32
 
33
33
 
34
34
 
@@ -1,15 +1,29 @@
1
1
  require 'csv'
2
2
  require 'colorize'
3
3
 
4
+
4
5
  class Rebate_calculator
5
- def initialize(postcode, kw, deeming_year)
6
- @postcode = postcode
7
- @kw = kw
8
- @deeming_year = deeming_year
6
+ def initialize
7
+ @postcode = 0
8
+ @kw = 0
9
+ @deeming_year = 0
9
10
  @stc_rating = 0
10
11
  @stc = 0
11
12
  end
12
13
 
14
+ def ask_parameters
15
+ puts "what is your postcode?"
16
+ postcode = gets.chomp.to_i
17
+ @postcode = postcode
18
+ puts "How many kilowatt is your future solar panel?"
19
+ kw = gets.chomp.to_i
20
+ @kw = kw
21
+ puts "What is the lifetime of your future solar panel?"
22
+ deeming_year = gets.chomp.to_i
23
+ @deeming_year = deeming_year
24
+ stc_postcode_rating
25
+ end
26
+ private
13
27
  def stc_postcode_rating
14
28
  csv_text = File.read(__dir__ + '/stc_rating.csv')
15
29
  csv = CSV.parse(csv_text, headers: true)
@@ -21,8 +35,6 @@ class Rebate_calculator
21
35
  stc_calculator
22
36
  end
23
37
 
24
- private
25
-
26
38
  def stc_calculator
27
39
  @stc = (@kw * @stc_rating * @deeming_year).floor
28
40
  rebate
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jishan_fast_track_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jishan_Lu
@@ -43,7 +43,7 @@ files:
43
43
  - bin/console
44
44
  - bin/gemoji
45
45
  - bin/htmldiff
46
- - bin/jishan_solar_rebate
46
+ - bin/jishan_solar_panel_rebate
47
47
  - bin/ldiff
48
48
  - bin/rake
49
49
  - bin/rspec