hardsploit_gui 2.3 → 2.4.0
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 +4 -4
 - data/README.md +22 -22
 - data/Rakefile +1 -1
 - data/bin/hardsploit_gui +3 -3
 - data/lib/Firmwares/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
 - data/lib/Firmwares/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
 - data/lib/Firmwares/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
 - data/lib/Firmwares/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd +0 -0
 - data/lib/Firmwares/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
 - data/lib/Firmwares/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
 - data/lib/Firmwares/FPGA/VersionFPGA.rb +5 -5
 - data/lib/Firmwares/UC/VersionUC.rb +12 -12
 - data/lib/HardsploitAPI/Core/HardsploitAPI.rb +210 -210
 - data/lib/HardsploitAPI/Core/HardsploitAPI_CONSTANT.rb +150 -150
 - data/lib/HardsploitAPI/Core/HardsploitAPI_ERROR.rb +109 -109
 - data/lib/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb +305 -305
 - data/lib/HardsploitAPI/Core/HardsploitAPI_PROGRESS.rb +28 -28
 - data/lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb +166 -166
 - data/lib/HardsploitAPI/Modules/I2C/HardsploitAPI_I2C.rb +356 -356
 - data/lib/HardsploitAPI/Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb +206 -206
 - data/lib/HardsploitAPI/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +306 -306
 - data/lib/HardsploitAPI/Modules/SPI/HardsploitAPI_SPI.rb +340 -340
 - data/lib/HardsploitAPI/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +83 -83
 - data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD.rb +367 -367
 - data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +89 -89
 - data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +61 -61
 - data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_STM32.rb +121 -121
 - data/lib/HardsploitAPI/Modules/TEST/HardsploitAPI_TEST_INTERACT.rb +98 -98
 - data/lib/HardsploitAPI/Modules/UART/HardsploitAPI_UART.rb +196 -196
 - data/lib/Hardsploit_gui.rb +96 -96
 - data/lib/LICENSE.txt +674 -674
 - data/lib/README.md +22 -22
 - data/lib/TRADEMARK +2 -2
 - data/lib/class/Chip_editor.rb +304 -304
 - data/lib/class/Chip_management.rb +496 -496
 - data/lib/class/Command_editor.rb +216 -216
 - data/lib/class/Command_table.rb +233 -233
 - data/lib/class/Console.rb +26 -26
 - data/lib/class/ErrorMsg.rb +312 -312
 - data/lib/class/Export.rb +140 -140
 - data/lib/class/Export_manager.rb +124 -124
 - data/lib/class/Firmware.rb +70 -70
 - data/lib/class/Generic_commands.rb +260 -260
 - data/lib/class/{i2c → I2C}/I2c_command.rb +51 -51
 - data/lib/class/{i2c → I2C}/I2c_export.rb +95 -95
 - data/lib/class/{i2c → I2C}/I2c_import.rb +117 -117
 - data/lib/class/{i2c → I2C}/I2c_scanner.rb +114 -114
 - data/lib/class/{i2c → I2C}/I2c_settings.rb +148 -148
 - data/lib/class/Import.rb +193 -193
 - data/lib/class/{parallel → PARALLEL}/Parallel_export.rb +118 -118
 - data/lib/class/{parallel → PARALLEL}/Parallel_import.rb +113 -113
 - data/lib/class/{parallel → PARALLEL}/Parallel_settings.rb +81 -81
 - data/lib/class/Progress_bar.rb +32 -32
 - data/lib/class/{spi → SPI}/Spi_export.rb +108 -108
 - data/lib/class/{spi → SPI}/Spi_import.rb +159 -159
 - data/lib/class/{spi → SPI}/Spi_settings.rb +108 -108
 - data/lib/class/{spi → SPI}/Spi_sniffer.rb +101 -101
 - data/lib/class/Signal_mapper.rb +120 -120
 - data/lib/class/Wire_helper.rb +230 -230
 - data/lib/class/swd/Swd.rb +125 -125
 - data/lib/class/swd/Swd_scanner.rb +121 -121
 - data/lib/class/swd/Swd_settings.rb +76 -76
 - data/lib/class/uart/Uart_baudrate.rb +62 -62
 - data/lib/class/uart/Uart_console.rb +115 -115
 - data/lib/class/uart/Uart_settings.rb +102 -102
 - data/lib/db/associations.rb +138 -138
 - data/lib/db/database.rb +4 -4
 - data/lib/db/development.sqlite3 +0 -0
 - data/lib/db/migrate/004_create_manufacturers.rb +13 -13
 - data/lib/db/migrate/005_create_packages.rb +13 -13
 - data/lib/db/migrate/006_create_chip_types.rb +11 -11
 - data/lib/db/migrate/007_create_buses.rb +11 -11
 - data/lib/db/migrate/008_create_signals.rb +14 -14
 - data/lib/db/migrate/009_create_chips.rb +25 -25
 - data/lib/db/migrate/010_create_commands.rb +21 -21
 - data/lib/db/migrate/011_create_bytes.rb +19 -19
 - data/lib/db/migrate/012_create_i2c_settings.rb +21 -21
 - data/lib/db/migrate/013_create_spi_settings.rb +26 -26
 - data/lib/db/migrate/014_create_parallel_settings.rb +21 -21
 - data/lib/db/migrate/015_create_pins.rb +19 -19
 - data/lib/db/migrate/016_create_uses.rb +17 -17
 - data/lib/db/migrate/017_create_swd_settings.rb +19 -19
 - data/lib/db/migrate/018_create_uart_settings.rb +22 -22
 - data/lib/db/schema.rb +157 -157
 - data/lib/db/seeds.rb +161 -161
 - data/lib/gui/gui_chip_editor.rb +349 -349
 - data/lib/gui/gui_chip_management.rb +377 -377
 - data/lib/gui/gui_command_editor.rb +219 -219
 - data/lib/gui/gui_export.rb +132 -132
 - data/lib/gui/gui_export_manager.rb +93 -93
 - data/lib/gui/gui_generic_commands.rb +202 -202
 - data/lib/gui/gui_generic_export.rb +164 -164
 - data/lib/gui/gui_generic_import.rb +142 -142
 - data/lib/gui/gui_i2c_command.rb +116 -116
 - data/lib/gui/gui_i2c_settings.rb +230 -230
 - data/lib/gui/gui_import.rb +131 -131
 - data/lib/gui/gui_parallel_settings.rb +195 -195
 - data/lib/gui/gui_progress_bar.rb +85 -85
 - data/lib/gui/gui_signal_mapper.rb +121 -121
 - data/lib/gui/gui_signal_scanner.rb +146 -146
 - data/lib/gui/gui_spi_import.rb +126 -126
 - data/lib/gui/gui_spi_settings.rb +313 -313
 - data/lib/gui/gui_spi_sniffer.rb +112 -112
 - data/lib/gui/gui_swd_settings.rb +166 -166
 - data/lib/gui/gui_uart_baudrate.rb +114 -114
 - data/lib/gui/gui_uart_console.rb +164 -164
 - data/lib/gui/gui_uart_settings.rb +243 -243
 - data/lib/gui/gui_wire_helper.rb +99 -99
 - data/lib/gui_designer/gui_chip_editor.ui +549 -549
 - data/lib/gui_designer/gui_chip_management.ui +886 -886
 - data/lib/gui_designer/gui_command_editor.ui +350 -350
 - data/lib/gui_designer/gui_export.ui +171 -171
 - data/lib/gui_designer/gui_export_manager.ui +115 -115
 - data/lib/gui_designer/gui_generic_commands.ui +342 -342
 - data/lib/gui_designer/gui_generic_export.ui +202 -202
 - data/lib/gui_designer/gui_generic_import.ui +165 -165
 - data/lib/gui_designer/gui_i2c_command.ui +148 -148
 - data/lib/gui_designer/gui_i2c_settings.ui +292 -292
 - data/lib/gui_designer/gui_import.ui +168 -168
 - data/lib/gui_designer/gui_parallel_settings.ui +247 -247
 - data/lib/gui_designer/gui_progress_bar.ui +86 -86
 - data/lib/gui_designer/gui_signal_mapper.ui +179 -179
 - data/lib/gui_designer/gui_signal_scanner.ui +261 -261
 - data/lib/gui_designer/gui_spi_settings.ui +446 -446
 - data/lib/gui_designer/gui_spi_sniffer.ui +156 -156
 - data/lib/gui_designer/gui_swd_settings.ui +189 -189
 - data/lib/gui_designer/gui_uart_baudrate.ui +161 -161
 - data/lib/gui_designer/gui_uart_console.ui +284 -284
 - data/lib/gui_designer/gui_uart_settings.ui +280 -280
 - data/lib/gui_designer/gui_wire_helper.ui +117 -117
 - data/lib/images/search.png +0 -0
 - data/lib/logs/error.log +0 -63
 - data/lib/models/bus.rb +19 -19
 - data/lib/models/byte.rb +29 -29
 - data/lib/models/chip.rb +41 -41
 - data/lib/models/chip_type.rb +14 -14
 - data/lib/models/command.rb +20 -20
 - data/lib/models/i2c_setting.rb +41 -41
 - data/lib/models/manufacturer.rb +14 -14
 - data/lib/models/package.rb +26 -26
 - data/lib/models/parallel_setting.rb +37 -37
 - data/lib/models/pin.rb +14 -14
 - data/lib/models/signall.rb +20 -20
 - data/lib/models/spi_setting.rb +67 -67
 - data/lib/models/swd_setting.rb +25 -25
 - data/lib/models/uart_setting.rb +52 -52
 - data/lib/models/use.rb +6 -6
 - data/lib/startHardsploit.rb +10 -10
 - metadata +14 -14
 
| 
         @@ -1,117 +1,117 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            <?xml version="1.0" encoding="UTF-8"?>
         
     | 
| 
       2 
     | 
    
         
            -
            <ui version="4.0">
         
     | 
| 
       3 
     | 
    
         
            -
             <class>Wire_helper</class>
         
     | 
| 
       4 
     | 
    
         
            -
             <widget class="QWidget" name="Wire_helper">
         
     | 
| 
       5 
     | 
    
         
            -
              <property name="geometry">
         
     | 
| 
       6 
     | 
    
         
            -
               <rect>
         
     | 
| 
       7 
     | 
    
         
            -
                <x>0</x>
         
     | 
| 
       8 
     | 
    
         
            -
                <y>0</y>
         
     | 
| 
       9 
     | 
    
         
            -
                <width>581</width>
         
     | 
| 
       10 
     | 
    
         
            -
                <height>560</height>
         
     | 
| 
       11 
     | 
    
         
            -
               </rect>
         
     | 
| 
       12 
     | 
    
         
            -
              </property>
         
     | 
| 
       13 
     | 
    
         
            -
              <property name="windowTitle">
         
     | 
| 
       14 
     | 
    
         
            -
               <string>Harsploit - Wiring helper</string>
         
     | 
| 
       15 
     | 
    
         
            -
              </property>
         
     | 
| 
       16 
     | 
    
         
            -
              <property name="styleSheet">
         
     | 
| 
       17 
     | 
    
         
            -
               <string notr="true"/>
         
     | 
| 
       18 
     | 
    
         
            -
              </property>
         
     | 
| 
       19 
     | 
    
         
            -
              <layout class="QGridLayout" name="gridLayout">
         
     | 
| 
       20 
     | 
    
         
            -
               <item row="1" column="0">
         
     | 
| 
       21 
     | 
    
         
            -
                <layout class="QVBoxLayout" name="vl">
         
     | 
| 
       22 
     | 
    
         
            -
                 <item>
         
     | 
| 
       23 
     | 
    
         
            -
                  <widget class="QLabel" name="lbl_advice">
         
     | 
| 
       24 
     | 
    
         
            -
                   <property name="text">
         
     | 
| 
       25 
     | 
    
         
            -
                    <string>Click on a pin number or signal name to turn ON the corresponding LED</string>
         
     | 
| 
       26 
     | 
    
         
            -
                   </property>
         
     | 
| 
       27 
     | 
    
         
            -
                  </widget>
         
     | 
| 
       28 
     | 
    
         
            -
                 </item>
         
     | 
| 
       29 
     | 
    
         
            -
                 <item>
         
     | 
| 
       30 
     | 
    
         
            -
                  <widget class="QLabel" name="lbl_chip">
         
     | 
| 
       31 
     | 
    
         
            -
                   <property name="text">
         
     | 
| 
       32 
     | 
    
         
            -
                    <string>Your chip:</string>
         
     | 
| 
       33 
     | 
    
         
            -
                   </property>
         
     | 
| 
       34 
     | 
    
         
            -
                  </widget>
         
     | 
| 
       35 
     | 
    
         
            -
                 </item>
         
     | 
| 
       36 
     | 
    
         
            -
                 <item>
         
     | 
| 
       37 
     | 
    
         
            -
                  <widget class="QGraphicsView" name="gView">
         
     | 
| 
       38 
     | 
    
         
            -
                   <property name="styleSheet">
         
     | 
| 
       39 
     | 
    
         
            -
                    <string notr="true">Qt::GraphicsTextItem{outline: 0;}</string>
         
     | 
| 
       40 
     | 
    
         
            -
                   </property>
         
     | 
| 
       41 
     | 
    
         
            -
                  </widget>
         
     | 
| 
       42 
     | 
    
         
            -
                 </item>
         
     | 
| 
       43 
     | 
    
         
            -
                 <item>
         
     | 
| 
       44 
     | 
    
         
            -
                  <layout class="QHBoxLayout" name="hl">
         
     | 
| 
       45 
     | 
    
         
            -
                   <item>
         
     | 
| 
       46 
     | 
    
         
            -
                    <spacer name="hs">
         
     | 
| 
       47 
     | 
    
         
            -
                     <property name="orientation">
         
     | 
| 
       48 
     | 
    
         
            -
                      <enum>Qt::Horizontal</enum>
         
     | 
| 
       49 
     | 
    
         
            -
                     </property>
         
     | 
| 
       50 
     | 
    
         
            -
                     <property name="sizeHint" stdset="0">
         
     | 
| 
       51 
     | 
    
         
            -
                      <size>
         
     | 
| 
       52 
     | 
    
         
            -
                       <width>40</width>
         
     | 
| 
       53 
     | 
    
         
            -
                       <height>20</height>
         
     | 
| 
       54 
     | 
    
         
            -
                      </size>
         
     | 
| 
       55 
     | 
    
         
            -
                     </property>
         
     | 
| 
       56 
     | 
    
         
            -
                    </spacer>
         
     | 
| 
       57 
     | 
    
         
            -
                   </item>
         
     | 
| 
       58 
     | 
    
         
            -
                   <item>
         
     | 
| 
       59 
     | 
    
         
            -
                    <widget class="QPushButton" name="btn_cancel">
         
     | 
| 
       60 
     | 
    
         
            -
                     <property name="text">
         
     | 
| 
       61 
     | 
    
         
            -
                      <string>Close</string>
         
     | 
| 
       62 
     | 
    
         
            -
                     </property>
         
     | 
| 
       63 
     | 
    
         
            -
                    </widget>
         
     | 
| 
       64 
     | 
    
         
            -
                   </item>
         
     | 
| 
       65 
     | 
    
         
            -
                   <item>
         
     | 
| 
       66 
     | 
    
         
            -
                    <widget class="QPushButton" name="btn_rotate">
         
     | 
| 
       67 
     | 
    
         
            -
                     <property name="text">
         
     | 
| 
       68 
     | 
    
         
            -
                      <string>Rotate</string>
         
     | 
| 
       69 
     | 
    
         
            -
                     </property>
         
     | 
| 
       70 
     | 
    
         
            -
                    </widget>
         
     | 
| 
       71 
     | 
    
         
            -
                   </item>
         
     | 
| 
       72 
     | 
    
         
            -
                  </layout>
         
     | 
| 
       73 
     | 
    
         
            -
                 </item>
         
     | 
| 
       74 
     | 
    
         
            -
                </layout>
         
     | 
| 
       75 
     | 
    
         
            -
               </item>
         
     | 
| 
       76 
     | 
    
         
            -
              </layout>
         
     | 
| 
       77 
     | 
    
         
            -
             </widget>
         
     | 
| 
       78 
     | 
    
         
            -
             <resources/>
         
     | 
| 
       79 
     | 
    
         
            -
             <connections>
         
     | 
| 
       80 
     | 
    
         
            -
              <connection>
         
     | 
| 
       81 
     | 
    
         
            -
               <sender>btn_cancel</sender>
         
     | 
| 
       82 
     | 
    
         
            -
               <signal>clicked()</signal>
         
     | 
| 
       83 
     | 
    
         
            -
               <receiver>Wire_helper</receiver>
         
     | 
| 
       84 
     | 
    
         
            -
               <slot>close()</slot>
         
     | 
| 
       85 
     | 
    
         
            -
               <hints>
         
     | 
| 
       86 
     | 
    
         
            -
                <hint type="sourcelabel">
         
     | 
| 
       87 
     | 
    
         
            -
                 <x>423</x>
         
     | 
| 
       88 
     | 
    
         
            -
                 <y>536</y>
         
     | 
| 
       89 
     | 
    
         
            -
                </hint>
         
     | 
| 
       90 
     | 
    
         
            -
                <hint type="destinationlabel">
         
     | 
| 
       91 
     | 
    
         
            -
                 <x>455</x>
         
     | 
| 
       92 
     | 
    
         
            -
                 <y>552</y>
         
     | 
| 
       93 
     | 
    
         
            -
                </hint>
         
     | 
| 
       94 
     | 
    
         
            -
               </hints>
         
     | 
| 
       95 
     | 
    
         
            -
              </connection>
         
     | 
| 
       96 
     | 
    
         
            -
              <connection>
         
     | 
| 
       97 
     | 
    
         
            -
               <sender>btn_rotate</sender>
         
     | 
| 
       98 
     | 
    
         
            -
               <signal>clicked()</signal>
         
     | 
| 
       99 
     | 
    
         
            -
               <receiver>Wire_helper</receiver>
         
     | 
| 
       100 
     | 
    
         
            -
               <slot>rotate_scene()</slot>
         
     | 
| 
       101 
     | 
    
         
            -
               <hints>
         
     | 
| 
       102 
     | 
    
         
            -
                <hint type="sourcelabel">
         
     | 
| 
       103 
     | 
    
         
            -
                 <x>505</x>
         
     | 
| 
       104 
     | 
    
         
            -
                 <y>535</y>
         
     | 
| 
       105 
     | 
    
         
            -
                </hint>
         
     | 
| 
       106 
     | 
    
         
            -
                <hint type="destinationlabel">
         
     | 
| 
       107 
     | 
    
         
            -
                 <x>363</x>
         
     | 
| 
       108 
     | 
    
         
            -
                 <y>553</y>
         
     | 
| 
       109 
     | 
    
         
            -
                </hint>
         
     | 
| 
       110 
     | 
    
         
            -
               </hints>
         
     | 
| 
       111 
     | 
    
         
            -
              </connection>
         
     | 
| 
       112 
     | 
    
         
            -
             </connections>
         
     | 
| 
       113 
     | 
    
         
            -
             <slots>
         
     | 
| 
       114 
     | 
    
         
            -
              <slot>reset_leds()</slot>
         
     | 
| 
       115 
     | 
    
         
            -
              <slot>rotate_scene()</slot>
         
     | 
| 
       116 
     | 
    
         
            -
             </slots>
         
     | 
| 
       117 
     | 
    
         
            -
            </ui>
         
     | 
| 
      
 1 
     | 
    
         
            +
            <?xml version="1.0" encoding="UTF-8"?>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <ui version="4.0">
         
     | 
| 
      
 3 
     | 
    
         
            +
             <class>Wire_helper</class>
         
     | 
| 
      
 4 
     | 
    
         
            +
             <widget class="QWidget" name="Wire_helper">
         
     | 
| 
      
 5 
     | 
    
         
            +
              <property name="geometry">
         
     | 
| 
      
 6 
     | 
    
         
            +
               <rect>
         
     | 
| 
      
 7 
     | 
    
         
            +
                <x>0</x>
         
     | 
| 
      
 8 
     | 
    
         
            +
                <y>0</y>
         
     | 
| 
      
 9 
     | 
    
         
            +
                <width>581</width>
         
     | 
| 
      
 10 
     | 
    
         
            +
                <height>560</height>
         
     | 
| 
      
 11 
     | 
    
         
            +
               </rect>
         
     | 
| 
      
 12 
     | 
    
         
            +
              </property>
         
     | 
| 
      
 13 
     | 
    
         
            +
              <property name="windowTitle">
         
     | 
| 
      
 14 
     | 
    
         
            +
               <string>Harsploit - Wiring helper</string>
         
     | 
| 
      
 15 
     | 
    
         
            +
              </property>
         
     | 
| 
      
 16 
     | 
    
         
            +
              <property name="styleSheet">
         
     | 
| 
      
 17 
     | 
    
         
            +
               <string notr="true"/>
         
     | 
| 
      
 18 
     | 
    
         
            +
              </property>
         
     | 
| 
      
 19 
     | 
    
         
            +
              <layout class="QGridLayout" name="gridLayout">
         
     | 
| 
      
 20 
     | 
    
         
            +
               <item row="1" column="0">
         
     | 
| 
      
 21 
     | 
    
         
            +
                <layout class="QVBoxLayout" name="vl">
         
     | 
| 
      
 22 
     | 
    
         
            +
                 <item>
         
     | 
| 
      
 23 
     | 
    
         
            +
                  <widget class="QLabel" name="lbl_advice">
         
     | 
| 
      
 24 
     | 
    
         
            +
                   <property name="text">
         
     | 
| 
      
 25 
     | 
    
         
            +
                    <string>Click on a pin number or signal name to turn ON the corresponding LED</string>
         
     | 
| 
      
 26 
     | 
    
         
            +
                   </property>
         
     | 
| 
      
 27 
     | 
    
         
            +
                  </widget>
         
     | 
| 
      
 28 
     | 
    
         
            +
                 </item>
         
     | 
| 
      
 29 
     | 
    
         
            +
                 <item>
         
     | 
| 
      
 30 
     | 
    
         
            +
                  <widget class="QLabel" name="lbl_chip">
         
     | 
| 
      
 31 
     | 
    
         
            +
                   <property name="text">
         
     | 
| 
      
 32 
     | 
    
         
            +
                    <string>Your chip:</string>
         
     | 
| 
      
 33 
     | 
    
         
            +
                   </property>
         
     | 
| 
      
 34 
     | 
    
         
            +
                  </widget>
         
     | 
| 
      
 35 
     | 
    
         
            +
                 </item>
         
     | 
| 
      
 36 
     | 
    
         
            +
                 <item>
         
     | 
| 
      
 37 
     | 
    
         
            +
                  <widget class="QGraphicsView" name="gView">
         
     | 
| 
      
 38 
     | 
    
         
            +
                   <property name="styleSheet">
         
     | 
| 
      
 39 
     | 
    
         
            +
                    <string notr="true">Qt::GraphicsTextItem{outline: 0;}</string>
         
     | 
| 
      
 40 
     | 
    
         
            +
                   </property>
         
     | 
| 
      
 41 
     | 
    
         
            +
                  </widget>
         
     | 
| 
      
 42 
     | 
    
         
            +
                 </item>
         
     | 
| 
      
 43 
     | 
    
         
            +
                 <item>
         
     | 
| 
      
 44 
     | 
    
         
            +
                  <layout class="QHBoxLayout" name="hl">
         
     | 
| 
      
 45 
     | 
    
         
            +
                   <item>
         
     | 
| 
      
 46 
     | 
    
         
            +
                    <spacer name="hs">
         
     | 
| 
      
 47 
     | 
    
         
            +
                     <property name="orientation">
         
     | 
| 
      
 48 
     | 
    
         
            +
                      <enum>Qt::Horizontal</enum>
         
     | 
| 
      
 49 
     | 
    
         
            +
                     </property>
         
     | 
| 
      
 50 
     | 
    
         
            +
                     <property name="sizeHint" stdset="0">
         
     | 
| 
      
 51 
     | 
    
         
            +
                      <size>
         
     | 
| 
      
 52 
     | 
    
         
            +
                       <width>40</width>
         
     | 
| 
      
 53 
     | 
    
         
            +
                       <height>20</height>
         
     | 
| 
      
 54 
     | 
    
         
            +
                      </size>
         
     | 
| 
      
 55 
     | 
    
         
            +
                     </property>
         
     | 
| 
      
 56 
     | 
    
         
            +
                    </spacer>
         
     | 
| 
      
 57 
     | 
    
         
            +
                   </item>
         
     | 
| 
      
 58 
     | 
    
         
            +
                   <item>
         
     | 
| 
      
 59 
     | 
    
         
            +
                    <widget class="QPushButton" name="btn_cancel">
         
     | 
| 
      
 60 
     | 
    
         
            +
                     <property name="text">
         
     | 
| 
      
 61 
     | 
    
         
            +
                      <string>Close</string>
         
     | 
| 
      
 62 
     | 
    
         
            +
                     </property>
         
     | 
| 
      
 63 
     | 
    
         
            +
                    </widget>
         
     | 
| 
      
 64 
     | 
    
         
            +
                   </item>
         
     | 
| 
      
 65 
     | 
    
         
            +
                   <item>
         
     | 
| 
      
 66 
     | 
    
         
            +
                    <widget class="QPushButton" name="btn_rotate">
         
     | 
| 
      
 67 
     | 
    
         
            +
                     <property name="text">
         
     | 
| 
      
 68 
     | 
    
         
            +
                      <string>Rotate</string>
         
     | 
| 
      
 69 
     | 
    
         
            +
                     </property>
         
     | 
| 
      
 70 
     | 
    
         
            +
                    </widget>
         
     | 
| 
      
 71 
     | 
    
         
            +
                   </item>
         
     | 
| 
      
 72 
     | 
    
         
            +
                  </layout>
         
     | 
| 
      
 73 
     | 
    
         
            +
                 </item>
         
     | 
| 
      
 74 
     | 
    
         
            +
                </layout>
         
     | 
| 
      
 75 
     | 
    
         
            +
               </item>
         
     | 
| 
      
 76 
     | 
    
         
            +
              </layout>
         
     | 
| 
      
 77 
     | 
    
         
            +
             </widget>
         
     | 
| 
      
 78 
     | 
    
         
            +
             <resources/>
         
     | 
| 
      
 79 
     | 
    
         
            +
             <connections>
         
     | 
| 
      
 80 
     | 
    
         
            +
              <connection>
         
     | 
| 
      
 81 
     | 
    
         
            +
               <sender>btn_cancel</sender>
         
     | 
| 
      
 82 
     | 
    
         
            +
               <signal>clicked()</signal>
         
     | 
| 
      
 83 
     | 
    
         
            +
               <receiver>Wire_helper</receiver>
         
     | 
| 
      
 84 
     | 
    
         
            +
               <slot>close()</slot>
         
     | 
| 
      
 85 
     | 
    
         
            +
               <hints>
         
     | 
| 
      
 86 
     | 
    
         
            +
                <hint type="sourcelabel">
         
     | 
| 
      
 87 
     | 
    
         
            +
                 <x>423</x>
         
     | 
| 
      
 88 
     | 
    
         
            +
                 <y>536</y>
         
     | 
| 
      
 89 
     | 
    
         
            +
                </hint>
         
     | 
| 
      
 90 
     | 
    
         
            +
                <hint type="destinationlabel">
         
     | 
| 
      
 91 
     | 
    
         
            +
                 <x>455</x>
         
     | 
| 
      
 92 
     | 
    
         
            +
                 <y>552</y>
         
     | 
| 
      
 93 
     | 
    
         
            +
                </hint>
         
     | 
| 
      
 94 
     | 
    
         
            +
               </hints>
         
     | 
| 
      
 95 
     | 
    
         
            +
              </connection>
         
     | 
| 
      
 96 
     | 
    
         
            +
              <connection>
         
     | 
| 
      
 97 
     | 
    
         
            +
               <sender>btn_rotate</sender>
         
     | 
| 
      
 98 
     | 
    
         
            +
               <signal>clicked()</signal>
         
     | 
| 
      
 99 
     | 
    
         
            +
               <receiver>Wire_helper</receiver>
         
     | 
| 
      
 100 
     | 
    
         
            +
               <slot>rotate_scene()</slot>
         
     | 
| 
      
 101 
     | 
    
         
            +
               <hints>
         
     | 
| 
      
 102 
     | 
    
         
            +
                <hint type="sourcelabel">
         
     | 
| 
      
 103 
     | 
    
         
            +
                 <x>505</x>
         
     | 
| 
      
 104 
     | 
    
         
            +
                 <y>535</y>
         
     | 
| 
      
 105 
     | 
    
         
            +
                </hint>
         
     | 
| 
      
 106 
     | 
    
         
            +
                <hint type="destinationlabel">
         
     | 
| 
      
 107 
     | 
    
         
            +
                 <x>363</x>
         
     | 
| 
      
 108 
     | 
    
         
            +
                 <y>553</y>
         
     | 
| 
      
 109 
     | 
    
         
            +
                </hint>
         
     | 
| 
      
 110 
     | 
    
         
            +
               </hints>
         
     | 
| 
      
 111 
     | 
    
         
            +
              </connection>
         
     | 
| 
      
 112 
     | 
    
         
            +
             </connections>
         
     | 
| 
      
 113 
     | 
    
         
            +
             <slots>
         
     | 
| 
      
 114 
     | 
    
         
            +
              <slot>reset_leds()</slot>
         
     | 
| 
      
 115 
     | 
    
         
            +
              <slot>rotate_scene()</slot>
         
     | 
| 
      
 116 
     | 
    
         
            +
             </slots>
         
     | 
| 
      
 117 
     | 
    
         
            +
            </ui>
         
     | 
    
        data/lib/images/search.png
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        data/lib/logs/error.log
    CHANGED
    
    | 
         @@ -1,63 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            E, [2016-08-09T19:55:29.296245 #18510] ERROR -- : No such file or directory @ rb_sysopen - /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/../Firmware/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd (Errno::ENOENT)
         
     | 
| 
       2 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb:101:in `read'
         
     | 
| 
       3 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb:101:in `writeFirmware'
         
     | 
| 
       4 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb:44:in `uploadFirmware'
         
     | 
| 
       5 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:34:in `initialize'
         
     | 
| 
       6 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `new'
         
     | 
| 
       7 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `initialize'
         
     | 
| 
       8 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `new'
         
     | 
| 
       9 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `autodetect'
         
     | 
| 
       10 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
         
     | 
| 
       11 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
         
     | 
| 
       12 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
         
     | 
| 
       13 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:37:in `block in initialize'
         
     | 
| 
       14 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `instance_eval'
         
     | 
| 
       15 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `run_initializer_block'
         
     | 
| 
       16 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
         
     | 
| 
       17 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
         
     | 
| 
       18 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `new'
         
     | 
| 
       19 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `initialize'
         
     | 
| 
       20 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `new'
         
     | 
| 
       21 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `<main>'
         
     | 
| 
       22 
     | 
    
         
            -
            E, [2016-08-09T20:00:06.743294 #18586] ERROR -- : undefined method `lbl_close' for #<Progress_bar:0x007f94caf125c8> (NoMethodError)
         
     | 
| 
       23 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `method_missing'
         
     | 
| 
       24 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `initialize'
         
     | 
| 
       25 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `new'
         
     | 
| 
       26 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `initialize'
         
     | 
| 
       27 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `new'
         
     | 
| 
       28 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `initialize'
         
     | 
| 
       29 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `new'
         
     | 
| 
       30 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `autodetect'
         
     | 
| 
       31 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
         
     | 
| 
       32 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
         
     | 
| 
       33 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
         
     | 
| 
       34 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:37:in `block in initialize'
         
     | 
| 
       35 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `instance_eval'
         
     | 
| 
       36 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `run_initializer_block'
         
     | 
| 
       37 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
         
     | 
| 
       38 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
         
     | 
| 
       39 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `new'
         
     | 
| 
       40 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `initialize'
         
     | 
| 
       41 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `new'
         
     | 
| 
       42 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `<main>'
         
     | 
| 
       43 
     | 
    
         
            -
            E, [2016-08-09T20:00:40.539121 #18598] ERROR -- : undefined method `lbl_close' for #<Progress_bar:0x007fcbac5b8978> (NoMethodError)
         
     | 
| 
       44 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `method_missing'
         
     | 
| 
       45 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Progress_bar.rb:17:in `initialize'
         
     | 
| 
       46 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `new'
         
     | 
| 
       47 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/Firmware.rb:12:in `initialize'
         
     | 
| 
       48 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `new'
         
     | 
| 
       49 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_baudrate.rb:18:in `initialize'
         
     | 
| 
       50 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `new'
         
     | 
| 
       51 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/class/uart/Uart_settings.rb:98:in `autodetect'
         
     | 
| 
       52 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
         
     | 
| 
       53 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
         
     | 
| 
       54 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
         
     | 
| 
       55 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:37:in `block in initialize'
         
     | 
| 
       56 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `instance_eval'
         
     | 
| 
       57 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2694:in `run_initializer_block'
         
     | 
| 
       58 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
         
     | 
| 
       59 
     | 
    
         
            -
            /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:462:in `initialize'
         
     | 
| 
       60 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `new'
         
     | 
| 
       61 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/Hardsploit_gui.rb:32:in `initialize'
         
     | 
| 
       62 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `new'
         
     | 
| 
       63 
     | 
    
         
            -
            /Users/julien/Documents/Cloud/Seafile/GIT_OPALE/GITLAB/hardsploit/HARDSPLOIT-GUI-RUBY/startHardsploit.rb:10:in `<main>'
         
     | 
    
        data/lib/models/bus.rb
    CHANGED
    
    | 
         @@ -1,19 +1,19 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            class Bus < ActiveRecord::Base
         
     | 
| 
       2 
     | 
    
         
            -
            	self.table_name = "buses"
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            	# Validations
         
     | 
| 
       5 
     | 
    
         
            -
            	validates :name,
         
     | 
| 
       6 
     | 
    
         
            -
            		length: {
         
     | 
| 
       7 
     | 
    
         
            -
            			in: 2..10,
         
     | 
| 
       8 
     | 
    
         
            -
            			wrong_length: "Bus name needs to be between 2 and 10 characters"
         
     | 
| 
       9 
     | 
    
         
            -
            		},
         
     | 
| 
       10 
     | 
    
         
            -
            		presence: true,
         
     | 
| 
       11 
     | 
    
         
            -
            		uniqueness: true
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            	# Associations
         
     | 
| 
       14 
     | 
    
         
            -
            	has_many :uses
         
     | 
| 
       15 
     | 
    
         
            -
            	has_many :signalls,
         
     | 
| 
       16 
     | 
    
         
            -
            		through: :uses,
         
     | 
| 
       17 
     | 
    
         
            -
            		foreign_key:	"bus_id"
         
     | 
| 
       18 
     | 
    
         
            -
            	has_many :commands
         
     | 
| 
       19 
     | 
    
         
            -
            end
         
     | 
| 
      
 1 
     | 
    
         
            +
            class Bus < ActiveRecord::Base
         
     | 
| 
      
 2 
     | 
    
         
            +
            	self.table_name = "buses"
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            	# Validations
         
     | 
| 
      
 5 
     | 
    
         
            +
            	validates :name,
         
     | 
| 
      
 6 
     | 
    
         
            +
            		length: {
         
     | 
| 
      
 7 
     | 
    
         
            +
            			in: 2..10,
         
     | 
| 
      
 8 
     | 
    
         
            +
            			wrong_length: "Bus name needs to be between 2 and 10 characters"
         
     | 
| 
      
 9 
     | 
    
         
            +
            		},
         
     | 
| 
      
 10 
     | 
    
         
            +
            		presence: true,
         
     | 
| 
      
 11 
     | 
    
         
            +
            		uniqueness: true
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            	# Associations
         
     | 
| 
      
 14 
     | 
    
         
            +
            	has_many :uses
         
     | 
| 
      
 15 
     | 
    
         
            +
            	has_many :signalls,
         
     | 
| 
      
 16 
     | 
    
         
            +
            		through: :uses,
         
     | 
| 
      
 17 
     | 
    
         
            +
            		foreign_key:	"bus_id"
         
     | 
| 
      
 18 
     | 
    
         
            +
            	has_many :commands
         
     | 
| 
      
 19 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/models/byte.rb
    CHANGED
    
    | 
         @@ -1,29 +1,29 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            class Byte < ActiveRecord::Base
         
     | 
| 
       2 
     | 
    
         
            -
            	# Validations
         
     | 
| 
       3 
     | 
    
         
            -
            	validates :index,
         
     | 
| 
       4 
     | 
    
         
            -
            		numericality: {
         
     | 
| 
       5 
     | 
    
         
            -
            			only_integer: true,
         
     | 
| 
       6 
     | 
    
         
            -
            			greater_than_or_equal_to: 0
         
     | 
| 
       7 
     | 
    
         
            -
            		},
         
     | 
| 
       8 
     | 
    
         
            -
            		presence: true
         
     | 
| 
       9 
     | 
    
         
            -
            	validates :value,
         
     | 
| 
       10 
     | 
    
         
            -
            		format: {
         
     | 
| 
       11 
     | 
    
         
            -
            			with: /[A-Fa-f0-9]/,
         
     | 
| 
       12 
     | 
    
         
            -
            			message: "Only allow hexadecimal values"
         
     | 
| 
       13 
     | 
    
         
            -
            		},
         
     | 
| 
       14 
     | 
    
         
            -
            		presence: true
         
     | 
| 
       15 
     | 
    
         
            -
            	validates :description,
         
     | 
| 
       16 
     | 
    
         
            -
            		length: {
         
     | 
| 
       17 
     | 
    
         
            -
            			maximum: 140,
         
     | 
| 
       18 
     | 
    
         
            -
                  too_long: "%{count} characters maximum for the description"
         
     | 
| 
       19 
     | 
    
         
            -
            		}
         
     | 
| 
       20 
     | 
    
         
            -
            	validates :iteration,
         
     | 
| 
       21 
     | 
    
         
            -
            		numericality: {
         
     | 
| 
       22 
     | 
    
         
            -
            			only_integer: true,
         
     | 
| 
       23 
     | 
    
         
            -
            			greater_than_or_equal_to: 0,
         
     | 
| 
       24 
     | 
    
         
            -
            			allow_nil: true
         
     | 
| 
       25 
     | 
    
         
            -
            		}
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
            	# Associations
         
     | 
| 
       28 
     | 
    
         
            -
            	belongs_to	:command
         
     | 
| 
       29 
     | 
    
         
            -
            end
         
     | 
| 
      
 1 
     | 
    
         
            +
            class Byte < ActiveRecord::Base
         
     | 
| 
      
 2 
     | 
    
         
            +
            	# Validations
         
     | 
| 
      
 3 
     | 
    
         
            +
            	validates :index,
         
     | 
| 
      
 4 
     | 
    
         
            +
            		numericality: {
         
     | 
| 
      
 5 
     | 
    
         
            +
            			only_integer: true,
         
     | 
| 
      
 6 
     | 
    
         
            +
            			greater_than_or_equal_to: 0
         
     | 
| 
      
 7 
     | 
    
         
            +
            		},
         
     | 
| 
      
 8 
     | 
    
         
            +
            		presence: true
         
     | 
| 
      
 9 
     | 
    
         
            +
            	validates :value,
         
     | 
| 
      
 10 
     | 
    
         
            +
            		format: {
         
     | 
| 
      
 11 
     | 
    
         
            +
            			with: /[A-Fa-f0-9]/,
         
     | 
| 
      
 12 
     | 
    
         
            +
            			message: "Only allow hexadecimal values"
         
     | 
| 
      
 13 
     | 
    
         
            +
            		},
         
     | 
| 
      
 14 
     | 
    
         
            +
            		presence: true
         
     | 
| 
      
 15 
     | 
    
         
            +
            	validates :description,
         
     | 
| 
      
 16 
     | 
    
         
            +
            		length: {
         
     | 
| 
      
 17 
     | 
    
         
            +
            			maximum: 140,
         
     | 
| 
      
 18 
     | 
    
         
            +
                  too_long: "%{count} characters maximum for the description"
         
     | 
| 
      
 19 
     | 
    
         
            +
            		}
         
     | 
| 
      
 20 
     | 
    
         
            +
            	validates :iteration,
         
     | 
| 
      
 21 
     | 
    
         
            +
            		numericality: {
         
     | 
| 
      
 22 
     | 
    
         
            +
            			only_integer: true,
         
     | 
| 
      
 23 
     | 
    
         
            +
            			greater_than_or_equal_to: 0,
         
     | 
| 
      
 24 
     | 
    
         
            +
            			allow_nil: true
         
     | 
| 
      
 25 
     | 
    
         
            +
            		}
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            	# Associations
         
     | 
| 
      
 28 
     | 
    
         
            +
            	belongs_to	:command
         
     | 
| 
      
 29 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/models/chip.rb
    CHANGED
    
    | 
         @@ -1,41 +1,41 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            class Chip < ActiveRecord::Base
         
     | 
| 
       2 
     | 
    
         
            -
            	# Validations
         
     | 
| 
       3 
     | 
    
         
            -
            	validates :reference,
         
     | 
| 
       4 
     | 
    
         
            -
                length: {
         
     | 
| 
       5 
     | 
    
         
            -
                  in: 2..25,
         
     | 
| 
       6 
     | 
    
         
            -
                  message: "must be between 2 and 25 characters (reference)"
         
     | 
| 
       7 
     | 
    
         
            -
                },
         
     | 
| 
       8 
     | 
    
         
            -
                presence: true,
         
     | 
| 
       9 
     | 
    
         
            -
                uniqueness: true
         
     | 
| 
       10 
     | 
    
         
            -
            		validates :description,
         
     | 
| 
       11 
     | 
    
         
            -
            	    length: {
         
     | 
| 
       12 
     | 
    
         
            -
            				maximum: 140,
         
     | 
| 
       13 
     | 
    
         
            -
            	      too_long: "%{count} characters maximum for the description"
         
     | 
| 
       14 
     | 
    
         
            -
            	    }
         
     | 
| 
       15 
     | 
    
         
            -
            		validates :voltage,
         
     | 
| 
       16 
     | 
    
         
            -
            			numericality: true
         
     | 
| 
       17 
     | 
    
         
            -
            		validates :manufacturer_id,
         
     | 
| 
       18 
     | 
    
         
            -
            			numericality: true
         
     | 
| 
       19 
     | 
    
         
            -
            		validates :package_id,
         
     | 
| 
       20 
     | 
    
         
            -
            			numericality: true
         
     | 
| 
       21 
     | 
    
         
            -
            		validates :chip_type_id,
         
     | 
| 
       22 
     | 
    
         
            -
            			numericality: true
         
     | 
| 
       23 
     | 
    
         
            -
            	# Associations
         
     | 
| 
       24 
     | 
    
         
            -
            	belongs_to :package
         
     | 
| 
       25 
     | 
    
         
            -
            	belongs_to :manufacturer
         
     | 
| 
       26 
     | 
    
         
            -
            	belongs_to :chip_type
         
     | 
| 
       27 
     | 
    
         
            -
            	has_many	:commands,
         
     | 
| 
       28 
     | 
    
         
            -
            		dependent: :destroy
         
     | 
| 
       29 
     | 
    
         
            -
            	has_many	:pins,
         
     | 
| 
       30 
     | 
    
         
            -
            		dependent: :destroy
         
     | 
| 
       31 
     | 
    
         
            -
              has_one		:parallel_setting,
         
     | 
| 
       32 
     | 
    
         
            -
            		dependent: :destroy
         
     | 
| 
       33 
     | 
    
         
            -
              has_one		:spi_setting,
         
     | 
| 
       34 
     | 
    
         
            -
            		dependent: :destroy
         
     | 
| 
       35 
     | 
    
         
            -
              has_one		:i2c_setting,
         
     | 
| 
       36 
     | 
    
         
            -
            		dependent: :destroy
         
     | 
| 
       37 
     | 
    
         
            -
            	has_one		:swd_setting,
         
     | 
| 
       38 
     | 
    
         
            -
            		dependent: :destroy
         
     | 
| 
       39 
     | 
    
         
            -
            	has_one		:uart_setting,
         
     | 
| 
       40 
     | 
    
         
            -
            		dependent: :destroy
         
     | 
| 
       41 
     | 
    
         
            -
            end
         
     | 
| 
      
 1 
     | 
    
         
            +
            class Chip < ActiveRecord::Base
         
     | 
| 
      
 2 
     | 
    
         
            +
            	# Validations
         
     | 
| 
      
 3 
     | 
    
         
            +
            	validates :reference,
         
     | 
| 
      
 4 
     | 
    
         
            +
                length: {
         
     | 
| 
      
 5 
     | 
    
         
            +
                  in: 2..25,
         
     | 
| 
      
 6 
     | 
    
         
            +
                  message: "must be between 2 and 25 characters (reference)"
         
     | 
| 
      
 7 
     | 
    
         
            +
                },
         
     | 
| 
      
 8 
     | 
    
         
            +
                presence: true,
         
     | 
| 
      
 9 
     | 
    
         
            +
                uniqueness: true
         
     | 
| 
      
 10 
     | 
    
         
            +
            		validates :description,
         
     | 
| 
      
 11 
     | 
    
         
            +
            	    length: {
         
     | 
| 
      
 12 
     | 
    
         
            +
            				maximum: 140,
         
     | 
| 
      
 13 
     | 
    
         
            +
            	      too_long: "%{count} characters maximum for the description"
         
     | 
| 
      
 14 
     | 
    
         
            +
            	    }
         
     | 
| 
      
 15 
     | 
    
         
            +
            		validates :voltage,
         
     | 
| 
      
 16 
     | 
    
         
            +
            			numericality: true
         
     | 
| 
      
 17 
     | 
    
         
            +
            		validates :manufacturer_id,
         
     | 
| 
      
 18 
     | 
    
         
            +
            			numericality: true
         
     | 
| 
      
 19 
     | 
    
         
            +
            		validates :package_id,
         
     | 
| 
      
 20 
     | 
    
         
            +
            			numericality: true
         
     | 
| 
      
 21 
     | 
    
         
            +
            		validates :chip_type_id,
         
     | 
| 
      
 22 
     | 
    
         
            +
            			numericality: true
         
     | 
| 
      
 23 
     | 
    
         
            +
            	# Associations
         
     | 
| 
      
 24 
     | 
    
         
            +
            	belongs_to :package
         
     | 
| 
      
 25 
     | 
    
         
            +
            	belongs_to :manufacturer
         
     | 
| 
      
 26 
     | 
    
         
            +
            	belongs_to :chip_type
         
     | 
| 
      
 27 
     | 
    
         
            +
            	has_many	:commands,
         
     | 
| 
      
 28 
     | 
    
         
            +
            		dependent: :destroy
         
     | 
| 
      
 29 
     | 
    
         
            +
            	has_many	:pins,
         
     | 
| 
      
 30 
     | 
    
         
            +
            		dependent: :destroy
         
     | 
| 
      
 31 
     | 
    
         
            +
              has_one		:parallel_setting,
         
     | 
| 
      
 32 
     | 
    
         
            +
            		dependent: :destroy
         
     | 
| 
      
 33 
     | 
    
         
            +
              has_one		:spi_setting,
         
     | 
| 
      
 34 
     | 
    
         
            +
            		dependent: :destroy
         
     | 
| 
      
 35 
     | 
    
         
            +
              has_one		:i2c_setting,
         
     | 
| 
      
 36 
     | 
    
         
            +
            		dependent: :destroy
         
     | 
| 
      
 37 
     | 
    
         
            +
            	has_one		:swd_setting,
         
     | 
| 
      
 38 
     | 
    
         
            +
            		dependent: :destroy
         
     | 
| 
      
 39 
     | 
    
         
            +
            	has_one		:uart_setting,
         
     | 
| 
      
 40 
     | 
    
         
            +
            		dependent: :destroy
         
     | 
| 
      
 41 
     | 
    
         
            +
            end
         
     |